diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-28 19:32:55 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-28 19:32:55 +0000 |
| commit | e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46 (patch) | |
| tree | 2740560017f69a77edaf5ace7ad0705c9dc1b5df /src/spiral-context.cpp | |
| parent | null check fixes patch from bug 261475 (diff) | |
| download | inkscape-e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46.tar.gz inkscape-e2a6ff85eaa5a4411ac70c642f78f4791d9d9d46.zip | |
Modify the parameters required for setting up the SnapManager
(bzr r6722)
Diffstat (limited to 'src/spiral-context.cpp')
| -rw-r--r-- | src/spiral-context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp index b42195c60..dc2e99e07 100644 --- a/src/spiral-context.cpp +++ b/src/spiral-context.cpp @@ -266,7 +266,7 @@ sp_spiral_context_root_handler(SPEventContext *event_context, GdkEvent *event) sc->center = Inkscape::setup_for_drag_start(desktop, event_context, event); SnapManager &m = desktop->namedview->snap_manager; - m.setup(desktop, NULL); //null, because we don't have an item yet + m.setup(desktop); Geom::Point pt2g = to_2geom(sc->center); m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, pt2g); sc->center = from_2geom(pt2g); @@ -298,7 +298,7 @@ sp_spiral_context_root_handler(SPEventContext *event_context, GdkEvent *event) Geom::Point motion_dt(to_2geom(event_context->desktop->w2d(motion_w))); SnapManager &m = desktop->namedview->snap_manager; - m.setup(desktop, sc->item); + m.setup(desktop, true, sc->item); m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt); sp_spiral_drag(sc, from_2geom(motion_dt), event->motion.state); @@ -442,7 +442,7 @@ sp_spiral_drag(SPSpiralContext *sc, NR::Point p, guint state) 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, sc->item); + m.setup(desktop, true, sc->item); m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, p1); SPSpiral *spiral = SP_SPIRAL(sc->item); |
