summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-02-06 14:59:28 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-02-06 14:59:28 +0000
commit195208c56145d9b9673aff0bb2f8795f5bc6fe22 (patch)
tree5f44dc6e637af2848b2c8e2a2f2b50b1bfdd433c /src/pencil-context.cpp
parentExtensions. Scour update (0.24) (diff)
downloadinkscape-195208c56145d9b9673aff0bb2f8795f5bc6fe22.tar.gz
inkscape-195208c56145d9b9673aff0bb2f8795f5bc6fe22.zip
Tiny bit of refactoring (inverting some logic)
(bzr r9059)
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 328c011ff..f18174457 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -364,10 +364,6 @@ pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mev
/* Create green anchor */
pc->green_anchor = sp_draw_anchor_new(pc, pc->green_curve, TRUE, pc->p[0]);
}
- /** \todo
- * fixme: I am not sure whether we want to snap to anchors
- * in middle of freehand (Lauris)
- */
if (anchor) {
p = anchor->dp;
}
@@ -395,7 +391,7 @@ pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mev
pc->_message_context->clear();
pc->anchor_statusbar = false;
}
- if (sp_event_context_knot_mouseover(pc)) {
+ if (!sp_event_context_knot_mouseover(pc)) {
SnapManager &m = dt->namedview->snap_manager;
m.setup(dt);
m.preSnap(Inkscape::SnapCandidatePoint(p, Inkscape::SNAPSOURCE_NODE_HANDLE));