[Kst] [Bug 117822] double click on a curve only works if you are near an actual data point

Andrew Walker arwalker at sumusltd.com
Fri May 4 03:05:21 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=117822         




------- Additional Comments From arwalker sumusltd com  2007-05-04 03:05 -------
The exising algorithm does not give the correct results as it is looking for the y pixel-distance between the cursor position and the point on the line directly above or below the cursor.

This will miss very steep lines.

The only full solution would be to search for the shortest distance to the curve line segments for all curve line segements that are no further than +-5 pixels in x from the cursor position.

This is potentially time consuming for very large vectors, but is probably not a huge issue as the action is only taken at a user's request.

For the logarithmic case we simply need to perform all calculations on the line segment in pixel space.


More information about the Kst mailing list