summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-02-15 20:30:42 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-02-15 20:30:42 +0000
commit32035d39b6b1138500eee1f625e40fe52c29bf26 (patch)
treeeb93df4c2799563e5eab32e06075f703e56443f5 /src/seltrans.cpp
parentZero page size for GTK spinbutton change (diff)
downloadinkscape-32035d39b6b1138500eee1f625e40fe52c29bf26.tar.gz
inkscape-32035d39b6b1138500eee1f625e40fe52c29bf26.zip
After snapping, show a tooltip together with the snap indicator
(bzr r7296)
Diffstat (limited to 'src/seltrans.cpp')
-rw-r--r--src/seltrans.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index e55c25d79..4614adb87 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -1392,7 +1392,6 @@ void sp_sel_trans_center(Inkscape::SelTrans *seltrans, SPSelTransHandle const &,
void Inkscape::SelTrans::moveTo(Geom::Point const &xy, guint state)
{
SnapManager &m = _desktop->namedview->snap_manager;
- m.setup(_desktop, true, _items_const);
/* The amount that we've moved by during this drag */
Geom::Point dxy = xy - _point;
@@ -1407,7 +1406,8 @@ void Inkscape::SelTrans::moveTo(Geom::Point const &xy, guint state)
** FIXME: this will snap to more than just the grid, nowadays.
*/
- m.freeSnapReturnByRef(SnapPreferences::SNAPPOINT_NODE, dxy);
+ m.setup(_desktop, true, _items_const);
+ m.freeSnapReturnByRef(SnapPreferences::SNAPPOINT_NODE, dxy);
} else if (!shift) {
@@ -1416,7 +1416,9 @@ void Inkscape::SelTrans::moveTo(Geom::Point const &xy, guint state)
** pick the smallest.
*/
- /* This will be our list of possible translations */
+ m.setup(_desktop, false, _items_const);
+
+ /* This will be our list of possible translations */
std::list<Inkscape::SnappedPoint> s;
if (control) {