summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/style-swatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget/style-swatch.cpp')
-rw-r--r--src/ui/widget/style-swatch.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}