diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-05-05 06:48:40 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-05-05 06:48:40 +0000 |
| commit | 8e4046bc75f815225bbe020d510b2433cf6448e1 (patch) | |
| tree | 37fb4e52892f71f6617bce9dd8713a36cc2ca95f /src/ui/widget/style-swatch.cpp | |
| parent | new effects translations (diff) | |
| download | inkscape-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.cpp | 2 |
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); } |
