diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-15 19:54:12 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-15 19:54:12 +0000 |
| commit | f624e4f24f6cc1a26552da5106f63ee4ae1fc57b (patch) | |
| tree | 6b24708dce82d010e37bdf3c6745d9a2a4abff18 /src/ui/tool/node.cpp | |
| parent | Fix a crash and add more safety checks to catch NULL pointers (diff) | |
| download | inkscape-f624e4f24f6cc1a26552da5106f63ee4ae1fc57b.tar.gz inkscape-f624e4f24f6cc1a26552da5106f63ee4ae1fc57b.zip | |
2nd attempt at fixing the crash introduced in rev. #9692. This should nail it!
(bzr r9714)
Diffstat (limited to 'src/ui/tool/node.cpp')
| -rw-r--r-- | src/ui/tool/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp index f6fb6cc54..1070e4bc3 100644 --- a/src/ui/tool/node.cpp +++ b/src/ui/tool/node.cpp @@ -946,6 +946,7 @@ void Node::dragged(Geom::Point &new_pos, GdkEventMotion *event) SnapManager &sm = _desktop->namedview->snap_manager; bool snap = sm.someSnapperMightSnap(); Inkscape::SnappedPoint sp; + std::vector<Inkscape::SnapCandidatePoint> unselected; if (snap) { /* setup * TODO We are doing this every time a snap happens. It should once be done only once @@ -955,7 +956,6 @@ void Node::dragged(Geom::Point &new_pos, GdkEventMotion *event) * TODO Snapping to unselected segments of selected paths doesn't work yet. */ // Build the list of unselected nodes. - std::vector<Inkscape::SnapCandidatePoint> unselected; typedef ControlPointSelection::Set Set; Set &nodes = _selection.allPoints(); for (Set::iterator i = nodes.begin(); i != nodes.end(); ++i) { |
