From 01b27a996de7aa03e5ec7b961ffd7d0f2e8625c6 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 14 Mar 2018 23:02:47 +0100 Subject: Allow upadate shapen innside groups with LPE --- src/ui/tools/eraser-tool.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/ui/tools/eraser-tool.cpp') diff --git a/src/ui/tools/eraser-tool.cpp b/src/ui/tools/eraser-tool.cpp index 8bf4ad82d..07c9c118b 100644 --- a/src/ui/tools/eraser-tool.cpp +++ b/src/ui/tools/eraser-tool.cpp @@ -835,8 +835,13 @@ void EraserTool::set_to_accumulated() { selection->clear(); if ( wasSelection ) { - if ( !remainingItems.empty() ) { - selection->add(remainingItems.begin(), remainingItems.end()); + for (std::vector::const_iterator j = remainingItems.begin(); j != remainingItems.end(); ++j){ + SPItem * item = *j; + SPLPEItem * lpeitem = dynamic_cast(item); + if (lpeitem->hasPathEffectRecursive()) { + sp_lpe_item_update_patheffect (lpeitem, true, false); + } + selection->add(item); } } } -- cgit v1.2.3