From bf4ff6c5d3166cf7a37c6e2ba0886cf15c4b49de Mon Sep 17 00:00:00 2001 From: dvlierop2 Date: Thu, 28 Aug 2008 19:59:11 +0000 Subject: [PATCH] Fix snapping of spirals --- src/spiral-context.cpp | 8 +++++--- 1 file 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; -- 2.30.2