summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-03-15 21:08:02 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-03-15 21:08:02 +0000
commite6a7b16084f21efb8268abfa6e8773b089cf740f (patch)
tree5938368bcddd877797cdc5cefa370df3f704d1e6 /src/nodepath.cpp
parentstore default size in lpe::ArrayParam (diff)
downloadinkscape-e6a7b16084f21efb8268abfa6e8773b089cf740f.tar.gz
inkscape-e6a7b16084f21efb8268abfa6e8773b089cf740f.zip
Implement constrained snapping when dragging the position and size handles of a rectangle in the node tool, with the ctrl-key being pressed.
(bzr r7497)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 51d4b9bef..1899f7978 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -1394,7 +1394,7 @@ static void sp_nodepath_selected_nodes_move(Inkscape::NodePath::Path *nodepath,
if (constrained) {
Inkscape::Snapper::ConstraintLine dedicated_constraint = constraint;
dedicated_constraint.setPoint(n->pos);
- s = m.constrainedSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, to_2geom(n->pos + delta), source_type, dedicated_constraint);
+ s = m.constrainedSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, to_2geom(n->pos + delta), source_type, dedicated_constraint, false);
} else {
s = m.freeSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, to_2geom(n->pos + delta), source_type);
}
@@ -3962,7 +3962,7 @@ static gboolean node_handle_request(SPKnot *knot, Geom::Point &p, guint state, g
p = n->pos + (scal / linelen) * ndelta;
}
if ((state & GDK_SHIFT_MASK) == 0) {
- s = m.constrainedSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, p, source_type, Inkscape::Snapper::ConstraintLine(p, ndelta));
+ s = m.constrainedSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, p, source_type, Inkscape::Snapper::ConstraintLine(p, ndelta), false);
}
} else {
if ((state & GDK_SHIFT_MASK) == 0) {