summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/tweak-tool.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-12-15 18:18:43 +0000
committertavmjong-free <tavmjong@free.fr>2016-12-15 18:18:43 +0000
commit5a8c4695e3c2d3916d88bc77d80d427aad622fdd (patch)
treed669494790333d3479a9ef7009d1b12414c901b4 /src/ui/tools/tweak-tool.cpp
parentSave state of backup button. (diff)
downloadinkscape-5a8c4695e3c2d3916d88bc77d80d427aad622fdd.tar.gz
inkscape-5a8c4695e3c2d3916d88bc77d80d427aad622fdd.zip
Prevent crash when iterator invalidated after converting shape to path.
(bzr r15328)
Diffstat (limited to 'src/ui/tools/tweak-tool.cpp')
-rw-r--r--src/ui/tools/tweak-tool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tools/tweak-tool.cpp b/src/ui/tools/tweak-tool.cpp
index 56939cc30..ff5d623c2 100644
--- a/src/ui/tools/tweak-tool.cpp
+++ b/src/ui/tools/tweak-tool.cpp
@@ -1084,7 +1084,8 @@ sp_tweak_dilate (TweakTool *tc, Geom::Point event_p, Geom::Point p, Geom::Point
double move_force = get_move_force(tc);
double color_force = MIN(sqrt(path_force)/20.0, 1);
- auto items= selection->items();
+// auto items= selection->items();
+ std::vector<SPItem*> items(selection->items().begin(), selection->items().end());
for(auto i=items.begin();i!=items.end(); ++i){
SPItem *item = *i;