From 9bfe3faad60c347983cf030b6dae33650710f5e1 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 1 Jan 2009 07:31:51 +0000 Subject: fix crash when ungrouping a group with set-then-unset filter (bzr r7050) --- src/style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index 4fd8577b9..ad4e509f6 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -2197,7 +2197,7 @@ sp_style_merge_ifilter(SPStyle *style, SPIFilter const *parent) style->filter.href->changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_style_filter_ref_changed), style)); } - if (style->filter.href && parent->href) { + if (style->filter.href && parent->href && parent->href->getObject()) { try { style->filter.href->attach(*parent->href->getURI()); } catch (Inkscape::BadURIException &e) { -- cgit v1.2.3