Code

enable copy/paste of objects with filters
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 03:54:12 +0000 (03:54 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 03:54:12 +0000 (03:54 +0000)
src/selection-chemistry.cpp

index 94e0b709ab8d519b2031e6700384541a40965778..9d3128ebcf4535224e282c7a4cea7b5ff2c9bd18 100644 (file)
@@ -934,6 +934,13 @@ void sp_copy_stuff_used_by_item (GSList **defs_clip, SPItem *item, const GSList
         }
     }
 
+    if (style->filter.filter) {
+        SPObject *filter = style->filter.filter;
+        if (SP_IS_FILTER(filter)) {
+            sp_copy_single (defs_clip, filter);
+        }
+    }
+
     // recurse
     for (SPObject *o = SP_OBJECT(item)->children; o != NULL; o = o->next) {
         if (SP_IS_ITEM(o))