diff options
Diffstat (limited to 'src/context-fns.cpp')
| -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]))); |
