diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-29 18:49:27 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-29 18:49:27 +0000 |
| commit | e7136d8c08bc408e060130fb9725a6c8e5b81a45 (patch) | |
| tree | 447af6054daad610612e6348aa52048bcc697358 /src/ui/tool/path-manipulator.cpp | |
| parent | cppcheck: variable initialisation (diff) | |
| download | inkscape-e7136d8c08bc408e060130fb9725a6c8e5b81a45.tar.gz inkscape-e7136d8c08bc408e060130fb9725a6c8e5b81a45.zip | |
fix usage of iterator when iterator's erase function is used (Bug #812018)
Fixed bugs:
- https://launchpad.net/bugs/812018
(bzr r10706)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 4be8df397..a7369f915 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1006,7 +1006,7 @@ void PathManipulator::_createControlPointsFromGeometry() // When we erase an element, the next one slides into position, // so we do not increment the iterator even though it is theoretically invalidated. if (i->empty()) { - pathv.erase(i); + i = pathv.erase(i); } else { ++i; } |
