summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/originalpath.cpp
diff options
context:
space:
mode:
authorJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-09-08 20:28:13 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es>2017-09-08 20:28:13 +0000
commit1f0a20e9f4270de3aff4b9ce0484e1d26c6d58da (patch)
treeea5e92cebc8f3b38f9e607653095b2dde24ecff9 /src/live_effects/parameter/originalpath.cpp
parentCI/AppVeyor: now compiles with poppler 0.59 (diff)
downloadinkscape-1f0a20e9f4270de3aff4b9ce0484e1d26c6d58da.tar.gz
inkscape-1f0a20e9f4270de3aff4b9ce0484e1d26c6d58da.zip
Fix for bug: 1715433 :: Clone original LPE can no longer be used to fill a powerstroke path
Diffstat (limited to 'src/live_effects/parameter/originalpath.cpp')
-rw-r--r--src/live_effects/parameter/originalpath.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/parameter/originalpath.cpp b/src/live_effects/parameter/originalpath.cpp
index 62483d7fb..3f833d2ac 100644
--- a/src/live_effects/parameter/originalpath.cpp
+++ b/src/live_effects/parameter/originalpath.cpp
@@ -36,6 +36,7 @@ OriginalPathParam::OriginalPathParam( const Glib::ustring& label, const Glib::us
: PathParam(label, tip, key, wr, effect, "")
{
oncanvas_editable = false;
+ _from_original_d = false;
}
OriginalPathParam::~OriginalPathParam()
@@ -90,7 +91,11 @@ OriginalPathParam::linked_modified_callback(SPObject *linked_obj, guint /*flags*
{
SPCurve *curve = NULL;
if (SP_IS_SHAPE(linked_obj)) {
- curve = SP_SHAPE(linked_obj)->getCurve();
+ if (_from_original_d) {
+ curve = SP_SHAPE(linked_obj)->getCurveBeforeLPE();
+ } else {
+ curve = SP_SHAPE(linked_obj)->getCurve();
+ }
}
if (SP_IS_TEXT(linked_obj)) {
curve = SP_TEXT(linked_obj)->getNormalizedBpath();