From 944aec996cd9ed6edc63a48d6000691ab8ad07e6 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sun, 24 Jan 2010 19:47:19 +0100 Subject: Fix freezes when deleting nodes. (bzr r9020) --- src/ui/tool/path-manipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/tool/path-manipulator.cpp') diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 82f7f9da0..4b42c16b0 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -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; -- cgit v1.2.3