From 8bbb404fab8dbb2491f1cde4efb01ae4693dcd67 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 1 Jan 2009 07:31:51 +0000 Subject: [PATCH] fix crash when ungrouping a group with set-then-unset filter --- src/style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2