summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/spiral-context.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index dc2e99e07..431e611c5 100644
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
@@ -439,12 +439,14 @@ sp_spiral_drag(SPSpiralContext *sc, NR::Point p, guint state)
sp_canvas_force_full_redraw_after_interruptions(desktop->canvas, 5);
}
- Geom::Point const p0 = to_2geom(sp_desktop_dt2root_xy_point(desktop, sc->center));
- Geom::Point p1 = to_2geom(sp_desktop_dt2root_xy_point(desktop, p));
SnapManager &m = desktop->namedview->snap_manager;
m.setup(desktop, true, sc->item);
- m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, p1);
+ Geom::Point pt2g = to_2geom(p);
+ m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, pt2g);
+ Geom::Point const p0 = to_2geom(sp_desktop_dt2root_xy_point(desktop, sc->center));
+ Geom::Point const p1 = to_2geom(sp_desktop_dt2root_xy_point(desktop, from_2geom(pt2g)));
+
SPSpiral *spiral = SP_SPIRAL(sc->item);
Geom::Point const delta = p1 - p0;