From 93d59978c35a4b57e141194050d027ef24f08ffb Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sat, 29 Sep 2018 21:29:21 +0200 Subject: Fix for bug:#1005036 Pasting a powerstroke resets the width controls --- src/ui/clipboard.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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(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); } } -- cgit v1.2.3