diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-28 19:59:11 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-28 19:59:11 +0000 |
| commit | 0c6331e26f21f0b9ddb95ec58f804ef03abd35fa (patch) | |
| tree | e824c6977f3772566ef84511ed1d23a4d3a06146 /src | |
| parent | Modify the parameters required for setting up the SnapManager (diff) | |
| download | inkscape-0c6331e26f21f0b9ddb95ec58f804ef03abd35fa.tar.gz inkscape-0c6331e26f21f0b9ddb95ec58f804ef03abd35fa.zip | |
Fix snapping of spirals
(bzr r6723)
Diffstat (limited to 'src')
| -rw-r--r-- | src/spiral-context.cpp | 8 |
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; |
