summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-08-11 04:53:15 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-08-11 04:53:15 +0000
commitb1597d6f47f64eef7d17b7b614056edd64692130 (patch)
treeb0f4bbc9d67f2afe50125afe915ec1062c0d6b98 /src/rect-context.cpp
parentpatch from bug 169004 (diff)
downloadinkscape-b1597d6f47f64eef7d17b7b614056edd64692130.tar.gz
inkscape-b1597d6f47f64eef7d17b7b614056edd64692130.zip
Move all of the snapper code to 2geom
(bzr r6606)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 67a74ee11..e8d7dc7dd 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -301,13 +301,14 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
dragging = true;
/* Position center */
- NR::Point const button_dt(desktop->w2d(button_w));
- rc->center = button_dt;
+ Geom::Point button_dt(desktop->w2d(button_w));
+ rc->center = from_2geom(button_dt);
/* Snap center */
SnapManager &m = desktop->namedview->snap_manager;
m.setup(desktop, NULL); //null, because we don't have an item yet
- m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, rc->center);
+ m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, button_dt);
+ rc->center = from_2geom(button_dt);
sp_canvas_item_grab(SP_CANVAS_ITEM(desktop->acetate),
( GDK_KEY_PRESS_MASK |