From b93042846520d88136cc3f211ec0a4adc60780cf Mon Sep 17 00:00:00 2001 From: kiirala Date: Sat, 23 Jun 2007 18:37:19 +0000 Subject: [PATCH] Fixed a crash when changing blur of filtered object after duplicating it --- src/filter-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2