Code

fix crash when ungrouping a group with set-then-unset filter
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 1 Jan 2009 07:31:51 +0000 (07:31 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 1 Jan 2009 07:31:51 +0000 (07:31 +0000)
src/style.cpp

index 4fd8577b94cda5ae84c71cedb17df3d78684c4cb..ad4e509f6c0ca9129ebbaa350c9a35b7e16b0c5b 100644 (file)
@@ -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) {