diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-08-07 20:05:00 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-08-07 20:05:00 +0000 |
| commit | 122d4274f150001d17154b72178ef1b53125c66c (patch) | |
| tree | 24b90705ce1d319bf04129965d1a502618952b46 /src/rect-context.cpp | |
| parent | warn when ConvertToShape fails (diff) | |
| download | inkscape-122d4274f150001d17154b72178ef1b53125c66c.tar.gz inkscape-122d4274f150001d17154b72178ef1b53125c66c.zip | |
Only in the selector tool we should snap in bbox mode (PointType = SNAPPOINT_BBOX)
(bzr r3415)
Diffstat (limited to 'src/rect-context.cpp')
| -rw-r--r-- | src/rect-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 7de7aa507..71683ec8e 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -299,7 +299,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent /* Snap center */ SnapManager const &m = desktop->namedview->snap_manager; - rc->center = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE | Inkscape::Snapper::SNAPPOINT_BBOX, + rc->center = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, button_dt, rc->item).getPoint(); sp_canvas_item_grab(SP_CANVAS_ITEM(desktop->acetate), @@ -330,7 +330,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent NR::Point motion_dt(desktop->w2d(motion_w)); SnapManager const &m = desktop->namedview->snap_manager; - motion_dt = m.freeSnap(Inkscape::Snapper::SNAPPOINT_BBOX | Inkscape::Snapper::SNAPPOINT_NODE, motion_dt, rc->item).getPoint(); + motion_dt = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt, rc->item).getPoint(); sp_rect_drag(*rc, motion_dt, event->motion.state); |
