summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-09-29 19:29:21 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-09-29 19:29:21 +0000
commit93d59978c35a4b57e141194050d027ef24f08ffb (patch)
tree2ac5f2dd5a51411edd6c02d71b299e67eefccf69 /src/ui/clipboard.cpp
parentFix bug: #1644805 (diff)
downloadinkscape-93d59978c35a4b57e141194050d027ef24f08ffb.tar.gz
inkscape-93d59978c35a4b57e141194050d027ef24f08ffb.zip
Fix for bug:#1005036
Pasting a powerstroke resets the width controls
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 65a704278..a56529dea 100644
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
@@ -1108,9 +1108,6 @@ void ClipboardManagerImpl::_applyPathEffect(SPItem *item, gchar const *effectsta
SPLPEItem *lpeitem = dynamic_cast<SPLPEItem *>(item);
if (lpeitem)
{
- // for each effect in the stack, check if we need to fork it before adding it to the item
- lpeitem->forkPathEffectsIfNecessary(1);
-
std::istringstream iss(effectstack);
std::string href;
while (std::getline(iss, href, ';'))
@@ -1122,6 +1119,8 @@ void ClipboardManagerImpl::_applyPathEffect(SPItem *item, gchar const *effectsta
LivePathEffectObject *lpeobj = LIVEPATHEFFECT(obj);
lpeitem->addPathEffect(lpeobj);
}
+ // for each effect in the stack, check if we need to fork it before adding it to the item
+ lpeitem->forkPathEffectsIfNecessary(1);
}
}