summaryrefslogtreecommitdiffstats
path: root/src/sp-lpe-item.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-10-29 14:49:38 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-10-29 14:49:38 +0000
commit0016bc355626cbebba2e6301c019480fff9817c1 (patch)
tree794070f9ba9d9f3a2e7dcdaa4183dadc89cdb9fa /src/sp-lpe-item.cpp
parentMerge branch 'master' into SymbolsSearch (diff)
parentFix a bug converting to paths nested LPE with powerstroke (diff)
downloadinkscape-0016bc355626cbebba2e6301c019480fff9817c1.tar.gz
inkscape-0016bc355626cbebba2e6301c019480fff9817c1.zip
Merge branch 'master' into SymbolsSearch
Diffstat (limited to 'src/sp-lpe-item.cpp')
-rw-r--r--src/sp-lpe-item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index c0688f869..5be950afa 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -604,9 +604,9 @@ void SPLPEItem::removeAllPathEffects(bool keep_paths)
}
// unlink and delete all references in the list
(*it)->unlink();
- delete *it;
- it = this->path_effect_list->erase(it);
+ ++it;
}
+ this->path_effect_list->clear();
this->getRepr()->setAttribute("inkscape:path-effect", NULL);
if (!keep_paths) {