From 8e4046bc75f815225bbe020d510b2433cf6448e1 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Fri, 5 May 2006 06:48:40 +0000 Subject: fix 1480934 (bzr r730) --- src/ui/widget/style-swatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/widget/style-swatch.cpp b/src/ui/widget/style-swatch.cpp index 204833aa5..0244d3121 100644 --- a/src/ui/widget/style-swatch.cpp +++ b/src/ui/widget/style-swatch.cpp @@ -189,7 +189,7 @@ StyleSwatch::setWatched(Inkscape::XML::Node *watched, Inkscape::XML::Node *secon // empty. if (secondary) { SPCSSAttr *css = sp_repr_css_attr_inherited(watched, "style"); - if (sp_repr_children((Inkscape::XML::Node *) css) == NULL) { // is css empty? + if (!css->attributeList()) { // is css empty? SPCSSAttr *css_secondary = sp_repr_css_attr_inherited(secondary, "style"); this->setStyle (css_secondary); } -- cgit v1.2.3