diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-05-16 10:28:42 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-05-16 10:28:42 +0000 |
| commit | af0a3ca0fa6b70fd4e11cd847ad8f0193063f7e2 (patch) | |
| tree | 453d89314a531ebcdf1a3ae351a90c92140d81c1 /src/live_effects/lpe-clone-original.cpp | |
| parent | Remove clang format diff unwanted file (diff) | |
| download | inkscape-af0a3ca0fa6b70fd4e11cd847ad8f0193063f7e2.tar.gz inkscape-af0a3ca0fa6b70fd4e11cd847ad8f0193063f7e2.zip | |
Fix a bug on reloading LPE Clone effect
Diffstat (limited to 'src/live_effects/lpe-clone-original.cpp')
| -rw-r--r-- | src/live_effects/lpe-clone-original.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-clone-original.cpp b/src/live_effects/lpe-clone-original.cpp index f797812f5..f239c6acf 100644 --- a/src/live_effects/lpe-clone-original.cpp +++ b/src/live_effects/lpe-clone-original.cpp @@ -136,7 +136,9 @@ LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, const gchar * if (strlen(attribute)) { if ( shape_dest && shape_origin && (std::strcmp(attribute, "d") == 0)) { SPCurve *c = nullptr; - if (method == CLM_BSPLINESPIRO || (previous_method == CLM_BSPLINESPIRO && method == CLM_CURRENT)) { + if (method == CLM_CURRENT && (previous_method == CLM_CURRENT || is_load)) { + c = shape_dest->getCurve(); + } else if (method == CLM_BSPLINESPIRO || (previous_method == CLM_BSPLINESPIRO && method == CLM_CURRENT)) { c = shape_origin->getCurveForEdit(); SPLPEItem * lpe_item = SP_LPE_ITEM(origin); if (lpe_item) { @@ -167,9 +169,7 @@ LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, const gchar * if (method == CLM_CURRENT) { shape_dest->setCurveBeforeLPE(c); } - } else if (method == CLM_CURRENT && previous_method == CLM_CURRENT) { - c = shape_dest->getCurve(); - } else { + } else if(method == CLM_D || (previous_method == CLM_D && method == CLM_CURRENT)){ c = shape_origin->getCurve(); if (method == CLM_CURRENT) { shape_dest->setCurveBeforeLPE(c); |
