From: Krzysztof KosiƄski Date: Sun, 24 Jan 2010 18:47:19 +0000 (+0100) Subject: Fix freezes when deleting nodes. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8f6b7ebce0b8b00594841ae4c58c7d264d99ced;p=inkscape.git Fix freezes when deleting nodes. --- 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;