summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/style-swatch.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-05-05 06:48:40 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-05-05 06:48:40 +0000
commit8e4046bc75f815225bbe020d510b2433cf6448e1 (patch)
tree37fb4e52892f71f6617bce9dd8713a36cc2ca95f /src/ui/widget/style-swatch.cpp
parentnew effects translations (diff)
downloadinkscape-8e4046bc75f815225bbe020d510b2433cf6448e1.tar.gz
inkscape-8e4046bc75f815225bbe020d510b2433cf6448e1.zip
fix 1480934
(bzr r730)
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);
}