From 8e49988bb83bac954fad4e8648acf2e3d65f96ff Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 8 Dec 2008 21:54:37 +0000 Subject: 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) --- src/context-fns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/context-fns.cpp') 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]))); -- cgit v1.2.3