From 8b8c374ce03fbef8458bfe4cad3f5a3a4b3b2bc9 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 5 May 2006 06:48:40 +0000 Subject: [PATCH] fix 1480934 --- src/ui/widget/style-swatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5