summaryrefslogtreecommitdiffstats
path: root/src/object/sp-path.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-09-29 17:38:18 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-09-29 17:38:18 +0000
commitb5b69ed38101efb51632b9c7ad4a25a5b13ca98c (patch)
treed9abc106c62b06bdf5fd422317b08b3288475b0b /src/object/sp-path.cpp
parentCI/AppVeyor: Escape from DLL hell (diff)
downloadinkscape-b5b69ed38101efb51632b9c7ad4a25a5b13ca98c.tar.gz
inkscape-b5b69ed38101efb51632b9c7ad4a25a5b13ca98c.zip
Fix for bug: #1791784 LPE path effect undo does not work
Diffstat (limited to 'src/object/sp-path.cpp')
-rw-r--r--src/object/sp-path.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/object/sp-path.cpp b/src/object/sp-path.cpp
index f0e961d8c..cf8c0ad10 100644
--- a/src/object/sp-path.cpp
+++ b/src/object/sp-path.cpp
@@ -227,8 +227,13 @@ void SPPath::set(unsigned int key, const gchar* value) {
curve->unref();
}
} else {
- this->setCurveBeforeLPE(nullptr);
-
+ bool haslpe = this->hasPathEffectOnClipOrMaskRecursive(this);
+ if (!haslpe) {
+ this->setCurveBeforeLPE(nullptr);
+ } else {
+ //This happends on undo, fix bug:#1791784
+ this->removeAllPathEffects(false);
+ }
}
sp_lpe_item_update_patheffect(this, true, true);
break;