diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-16 16:09:45 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-16 16:09:45 +0000 |
| commit | 7a9e0c837b0ec0341f188d2af41e47416d627f84 (patch) | |
| tree | f202592aa35138aeb016ea7c3acda9585f300c02 /src/ui/clipboard.cpp | |
| parent | Ditch PERMANENT_FLASH because it is handled by providesOwnFlashPath(); avoid ... (diff) | |
| download | inkscape-7a9e0c837b0ec0341f188d2af41e47416d627f84.tar.gz inkscape-7a9e0c837b0ec0341f188d2af41e47416d627f84.zip | |
copy complete LPE stack to clipboard instead of only the current active lpe
(bzr r5957)
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index 8907b3b0c..f7967bd40 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -595,14 +595,15 @@ void ClipboardManagerImpl::_copyUsedDefs(SPItem *item) } } } - // For lpe items, copy liveeffect if applicable - // TODO: copy the whole effect stack. now it only copies current selected effect + // For lpe items, copy lpe stack if applicable if (SP_IS_LPE_ITEM(item)) { SPLPEItem *lpeitem = SP_LPE_ITEM (item); if (sp_lpe_item_has_path_effect(lpeitem)) { - Inkscape::LivePathEffect::LPEObjectReference* lperef = sp_lpe_item_get_current_lpereference(lpeitem); - if (lperef && lperef->lpeobject) { - _copyNode(SP_OBJECT_REPR(SP_OBJECT(lperef->lpeobject)), _doc, _defs); + for (PathEffectList::iterator it = lpeitem->path_effect_list->begin(); it != lpeitem->path_effect_list->end(); ++it) + { + LivePathEffectObject *lpeobj = (*it)->lpeobject; + if (lpeobj) + _copyNode(SP_OBJECT_REPR(SP_OBJECT(lpeobj)), _doc, _defs); } } } |
