Code

Fixed a crash when changing blur of filtered object after duplicating it
authorkiirala <kiirala@users.sourceforge.net>
Sat, 23 Jun 2007 18:37:19 +0000 (18:37 +0000)
committerkiirala <kiirala@users.sourceforge.net>
Sat, 23 Jun 2007 18:37:19 +0000 (18:37 +0000)
src/filter-chemistry.cpp

index 90a6e32f2ca4aede9b6bb2d7aa716ed8489f7f02..fb4064a7e50e6568800ab8cf1ccf845a7b1856f0 100644 (file)
@@ -179,7 +179,7 @@ modify_filter_gaussian_blur_from_item(SPDocument *document, SPItem *item,
     // If there are more users for this filter, duplicate it
     if (SP_OBJECT_HREFCOUNT(filter) > count_filter_hrefs(item, filter)) {
         Inkscape::XML::Node *repr;
-        repr = SP_OBJECT_REPR(item)->duplicate(xml_doc);
+        repr = SP_OBJECT_REPR(item->style->filter.filter)->duplicate(xml_doc);
         SPDefs *defs = (SPDefs *) SP_DOCUMENT_DEFS(document);
         SP_OBJECT_REPR(defs)->appendChild(repr);