From e254e5c6ced93403c125592237b43215bde7b0ff Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 23 Apr 2018 23:34:58 +0200 Subject: Fixing LPE recalculations warnings on update --- src/ui/tools/eraser-tool.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 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 c95cc8b47..6d1c24f07 100644 --- a/src/ui/tools/eraser-tool.cpp +++ b/src/ui/tools/eraser-tool.cpp @@ -835,13 +835,8 @@ void EraserTool::set_to_accumulated() { selection->clear(); if ( wasSelection ) { - 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); + if ( !remainingItems.empty() ) { + selection->add(remainingItems.begin(), remainingItems.end()); } } } -- cgit v1.2.3