Steema Issues Database

Note: 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.



Bug 424 - [TJ71016466] The fix for TJ71014366 could be incorrect. It was made to skip a Stac...
Summary: [TJ71016466] The fix for TJ71014366 could be incorrect. It was made to skip a...
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-28 12:18 EST by yeray alonso
Modified: 2013-12-12 10:29 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2013-11-20 12:15:52 EST
The fix for TJ71014366 could be incorrect. It was made to skip a StackOverflowError with the clicked function. If you move the mouse around the line below from a line segment to a pointer, you get the error:
		Line line1 = new Line(tChart1.getChart());
		line1.fillSampleValues(5);
		line1.getPointer().setVisible(true);
		
		line1.addSeriesMouseListener(new SeriesMouseAdapter() {
			@Override
			public void seriesClicked(SeriesMouseEvent e) {
				int x = e.getPoint().x;
				int y = e.getPoint().y;
				int index = e.getSeries().clicked(x, y);
				shell.setText("ValueIndex: " + e.getValueIndex() + " - ClickedIndex: " + index);
			}
		});
This could be generating an endless loop and the fix for TJ71014366 was to implement a clicked function for the Line class.
However, this clicked function doesn't return correct values. Run the code above and click on the series. The pointers aren't checked.
In .NET none of the problems described above are reproducible. So we should revise the mouse events to see if the endless loop is generated, and how is it avoided in .NET without having a clicked function for the Line class. [created:2012-12-28T12:18:56.000+01:00 reported by:yeray@steema.com reported in version:3.2012.0808 (TeeChart Java)]