diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2008-12-08 21:54:37 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2008-12-08 21:54:37 +0000 |
| commit | 8e49988bb83bac954fad4e8648acf2e3d65f96ff (patch) | |
| tree | 33d0a04a1de69f23c4228fedaf0734709be8550e /src/context-fns.cpp | |
| parent | "make check" now compiles and runs on Linux. (diff) | |
| download | inkscape-8e49988bb83bac954fad4e8648acf2e3d65f96ff.tar.gz inkscape-8e49988bb83bac954fad4e8648acf2e3d65f96ff.zip | |
Make all tools consider full parent transform (up to document, not just up to root)
See http://wiki.inkscape.org/wiki/index.php/ViewBoxToDo
(bzr r6974)
Diffstat (limited to '')
| -rw-r--r-- | src/context-fns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context-fns.cpp b/src/context-fns.cpp index 399e85154..54b07a02a 100644 --- a/src/context-fns.cpp +++ b/src/context-fns.cpp @@ -207,8 +207,8 @@ Geom::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item desktop->snapindicator->set_new_snaptarget(snappoint); } - p[0] = sp_desktop_dt2root_xy_point(desktop, p[0]); - p[1] = sp_desktop_dt2root_xy_point(desktop, p[1]); + p[0] = sp_desktop_dt2doc_xy_point(desktop, p[0]); + p[1] = sp_desktop_dt2doc_xy_point(desktop, p[1]); return Geom::Rect(Geom::Point(MIN(p[0][Geom::X], p[1][Geom::X]), MIN(p[0][Geom::Y], p[1][Geom::Y])), Geom::Point(MAX(p[0][Geom::X], p[1][Geom::X]), MAX(p[0][Geom::Y], p[1][Geom::Y]))); |
