Bug 152614

Summary: Plot cursor not drawn in correct location when axes reversed
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description D. V. Wiebe 2007-11-20 22:58:01 UTC
Version:           1.5.0 (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

The cursor (the little cross-hairs that gets stuck to a plot when I hit 'c') doesn't get drawn in the right location when plot axes reversed.  To be specific, it is drawn in where it would have been had the axes not been reversed.

Steps to reproduce:

1. Create a plot
2. Right click -> Edit... -> X Axis -> select 'Reverse'
3. Add a cursor to the plot by hitting 'c'

Result:

The cursor is drawn not under the mouse cursor, but on the other side of the graph.  The location of the cursor icon corresponds the location it would have had (in the window), had the plot not been reversed.

Expected result:

The cursor is drawn under the mouse cursor.

Note: despite the cursor being drawn in the wrong location, the offset reported on the status line is correct (ie. the offset reported for the location where the cursor should have been drawn is 0,0 while the offset reported for the place where cursor is actually drawn is non-zero.
Comment 1 Andrew Walker 2007-11-22 02:26:09 UTC
SVN commit 739848 by arwalker:

BUG:152614 correctly handle cursor when one or more axis is reversed

 M  +11 -0     kst2dplot.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=739848