![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | ArrayIndexOutOfBoundsException when unzooming a chart with a CustomAxis created after zooming | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Axes | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=10&p=67301#p67301 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
restoreScales at Chart.java corrected to loop into AxisSavedScales array, not into all the axes. |
First zoom in, push the button and then zoom out to reproduce an ArrayIndexOutOfBoundsException. tChart1.getAspect().setView3D(false); Line l = new Line(tChart1.getChart()); l.fillSampleValues(); Button b = new Button(tChart1.getParent(), SWT.NONE); b.setText("First zoom in, push this button and then zoom out to reproduce an ArrayIndexOutOfBoundsException."); b.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Axis teeVerticalAxis = new com.steema.teechart.axis.Axis(tChart1.getChart()); teeVerticalAxis.getGrid().setVisible(false); teeVerticalAxis.getTitle().setText("TestAxis"); tChart1.getAxes().getCustom().add(teeVerticalAxis); Line l1 = new Line(tChart1.getChart()); l1.fillSampleValues(); l1.setCustomVertAxis(teeVerticalAxis); l1.setCustomHorizAxis(tChart1.getAxes().getBottom()); } });