From ff0769d40b504166ca53d766888c23239f3bfa77 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Tue, 11 Sep 2018 11:39:13 +0200 Subject: Fix bug 1684238 --- src/object/sp-shape.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/object/sp-shape.cpp') diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp index a5c806e34..dd9c7e488 100644 --- a/src/object/sp-shape.cpp +++ b/src/object/sp-shape.cpp @@ -34,6 +34,7 @@ #include "document.h" #include "style.h" #include "sp-marker.h" +#include "sp-root.h" #include "sp-path.h" #include "preferences.h" #include "attributes.h" @@ -788,7 +789,11 @@ void SPShape::update_patheffect(bool write) /* if a path has an lpeitem applied, then reset the curve to the _curve_before_lpe. * This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/ this->setCurveInsync(c_lpe); - this->resetClipPathAndMaskLPE(); + SPRoot *root = this->document->getRoot(); + if (!sp_version_inside_range(root->version.inkscape, 0, 1, 0, 92)) { + this->resetClipPathAndMaskLPE(); + } + bool success = false; if (hasPathEffect() && pathEffectsEnabled()) { success = this->performPathEffect(c_lpe, SP_SHAPE(this)); -- cgit v1.2.3