Bug 152614 - Plot cursor not drawn in correct location when axes reversed
Summary: Plot cursor not drawn in correct location when axes reversed
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 22:58 UTC by D. V. Wiebe
Modified: 2007-11-22 02:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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