From: buliabyak Date: Thu, 1 Jan 2009 07:31:51 +0000 (+0000) Subject: fix crash when ungrouping a group with set-then-unset filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8bbb404fab8dbb2491f1cde4efb01ae4693dcd67;p=inkscape.git fix crash when ungrouping a group with set-then-unset filter --- 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) {