summaryrefslogtreecommitdiffstats
path: root/src/object/sp-shape.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2018-09-11 09:39:13 +0000
committerJabiertxof <jabier.arraiza@marker.es>2018-09-11 09:39:13 +0000
commitff0769d40b504166ca53d766888c23239f3bfa77 (patch)
treea784dae924998a86a6f2e8bd0710deaf41b20594 /src/object/sp-shape.cpp
parentRemove unneeded sp-marshal.{h,cpp}.mingw (diff)
downloadinkscape-ff0769d40b504166ca53d766888c23239f3bfa77.tar.gz
inkscape-ff0769d40b504166ca53d766888c23239f3bfa77.zip
Fix bug 1684238
Diffstat (limited to '')
-rw-r--r--src/object/sp-shape.cpp7
1 files changed, 6 insertions, 1 deletions
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));