diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2010-05-18 19:17:03 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2010-05-18 19:17:03 +0000 |
| commit | 4118824234670a01ef4caad683817567ea84e6ae (patch) | |
| tree | 2d5e4389d81a91e4d9e5e18e5e50db3814c87714 /src/ui/clipboard.cpp | |
| parent | Keys. gdkkeysyms.h URL correction (Bug #528884). (diff) | |
| download | inkscape-4118824234670a01ef4caad683817567ea84e6ae.tar.gz inkscape-4118824234670a01ef4caad683817567ea84e6ae.zip | |
better fix for lpe stack forking
Fixed bugs:
- https://launchpad.net/bugs/578969
(bzr r9431)
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index dd1f981b5..9ce2ac5ba 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -1057,6 +1057,8 @@ void ClipboardManagerImpl::_applyPathEffect(SPItem *item, gchar const *effectsta { SPLPEItem *lpeitem = SP_LPE_ITEM(item); // for each effect in the stack, check if we need to fork it before adding it to the item + sp_lpe_item_fork_path_effects_if_necessary(lpeitem, 1); + std::istringstream iss(effectstack); std::string href; while (std::getline(iss, href, ';')) @@ -1065,8 +1067,7 @@ void ClipboardManagerImpl::_applyPathEffect(SPItem *item, gchar const *effectsta if (!obj) { return; } - // if the effectstack is not used by anyone, we might as well take it - LivePathEffectObject *lpeobj = LIVEPATHEFFECT(obj)->fork_private_if_necessary(1); + LivePathEffectObject *lpeobj = LIVEPATHEFFECT(obj); sp_lpe_item_add_path_effect(lpeitem, lpeobj); } } |
