summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1bd25dd)
raw | patch | inline | side by side (parent: 1bd25dd)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 16 Jun 2008 16:09:45 +0000 (16:09 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 16 Jun 2008 16:09:45 +0000 (16:09 +0000) |
src/ui/clipboard.cpp | patch | blob | history |
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 8907b3b0c6d443ef08f8177d1de588e741d1da11..f7967bd40d7546f48b572601872a0825caa44f70 100644 (file)
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
}
}
}
- // 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);
}
}
}