trunk: ruler position markers incorrect if units ≠ px (regression)

Bug #1105504 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Alex Valavanis

Bug Description

Steps to reproduce:
1) launch inkscape with default prefs, empty new document
2) open 'File > Document properties' and change default units to e.g. 'mm'
3) close document properties
4) move the mouse pointer position on-canvas and watch the marker of the rulers update according to the mouse pointer position

Expected result:
The marker corresponds with the current mouse pointer position.

Actual result:
The position of the marker only is correct if the mouse pointer is near the origin (lower left corner of the page). The further away from the origin the mouse pointer is moved, the more offset the marker in the ruler is.

Based on tests with archived builds, this regression was introduced between r12001-r12004:
- not reproduced with r12001 and earlier revisions
- reproduced with r12004 and later revisions
on
- OS X 10.7.4 with GTK+/X11 2.24.13 and GTK+/Quartz 2.24.14
- Ubuntu 12.10 (64bit, VM), r12063

Changelog for 'src/widgets/rulers.cpp':
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/changes?filter_file_id=ruler.cpp-20091128124040-aej0x7yhxng1m6ly-2338>

Tags: regression ui
su_v (suv-lp)
description: updated
Changed in inkscape:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Should be fixed in lp:inkscape r12067. I migrated the position tracking implementation to the much simpler new track_widget behaviour we adopted from Gimp in sp_ruler.

Changed in inkscape:
status: Triaged → Fix Released
milestone: 0.49 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.