diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-12-15 18:18:43 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-12-15 18:18:43 +0000 |
| commit | 5a8c4695e3c2d3916d88bc77d80d427aad622fdd (patch) | |
| tree | d669494790333d3479a9ef7009d1b12414c901b4 /src/ui/tools/tweak-tool.cpp | |
| parent | Save state of backup button. (diff) | |
| download | inkscape-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.cpp | 3 |
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; |
