From: dvlierop2 Date: Thu, 28 Aug 2008 19:59:11 +0000 (+0000) Subject: Fix snapping of spirals X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf4ff6c5d3166cf7a37c6e2ba0886cf15c4b49de;p=inkscape.git Fix snapping of spirals --- 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;