Code

Fix freezes when deleting nodes.
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 24 Jan 2010 18:47:19 +0000 (19:47 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 24 Jan 2010 18:47:19 +0000 (19:47 +0100)
src/ui/tool/path-manipulator.cpp

index 82f7f9da028ac87d0113bf09cf8da0f13080d848..4b42c16b00f040a6bfb471dc521f704b0c1bad97 100644 (file)
@@ -549,7 +549,7 @@ unsigned PathManipulator::_deleteStretch(NodeList::iterator start, NodeList::ite
     double const t_step = 1.0 / samples_per_segment;
 
     unsigned del_len = 0;
-    for (NodeList::iterator i = start; i != end; ++i) {
+    for (NodeList::iterator i = start; i != end; i = i.next()) {
         ++del_len;
     }
     if (del_len == 0) return 0;