diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-03 19:05:32 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-03 19:05:32 +0000 |
| commit | 69ba226147751a529c9561925b2737fa3071ecd2 (patch) | |
| tree | 85e2ae317c8f67ca0451e41dc5d022b6f2554aac /src/sp-lpe-item.cpp | |
| parent | Add triangle knot. (diff) | |
| download | inkscape-69ba226147751a529c9561925b2737fa3071ecd2.tar.gz inkscape-69ba226147751a529c9561925b2737fa3071ecd2.zip | |
Improvements and fixes for buds pointed by suv on measure line LPE
(bzr r15294)
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 8f0713652..ae29137e6 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -514,6 +514,21 @@ void SPLPEItem::removeCurrentPathEffect(bool keep_paths) */ void SPLPEItem::removeAllPathEffects(bool keep_paths) { + if (keep_paths) { + if (path_effect_list->empty()) { + return; + } + + for (PathEffectList::const_iterator it = path_effect_list->begin(); it != path_effect_list->end(); ++it) + { + LivePathEffectObject *lpeobj = (*it)->lpeobject; + if (lpeobj) { + Inkscape::LivePathEffect::Effect * lpe = lpeobj->get_lpe(); + lpe->erase_extra_objects = false; + } + } + } + this->getRepr()->setAttribute("inkscape:path-effect", NULL); if (!keep_paths) { |
