From: kiirala Date: Sat, 23 Jun 2007 18:37:19 +0000 (+0000) Subject: Fixed a crash when changing blur of filtered object after duplicating it X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b93042846520d88136cc3f211ec0a4adc60780cf;p=inkscape.git Fixed a crash when changing blur of filtered object after duplicating it --- diff --git a/src/filter-chemistry.cpp b/src/filter-chemistry.cpp index 90a6e32f2..fb4064a7e 100644 --- a/src/filter-chemistry.cpp +++ b/src/filter-chemistry.cpp @@ -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);