Code

Fix performance regressions in the node tool and a stupid crash bug
[inkscape.git] / src / ui / tool / node.cpp
index 6419acf6d32e12bc842a43a9a14584035e7f7c1b..9f1e25877254214e172202eabfa5174501dac323 100644 (file)
@@ -858,7 +858,7 @@ void Node::dragged(Geom::Point &new_pos, GdkEventMotion *event)
 
         // Build the list of unselected nodes.
         typedef ControlPointSelection::Set Set;
-        Set nodes = _selection.allPoints();
+        Set &nodes = _selection.allPoints();
         for (Set::iterator i = nodes.begin(); i != nodes.end(); ++i) {
             if (!(*i)->selected()) {
                 Node *n = static_cast<Node*>(*i);