diff options
Diffstat (limited to 'src/ui/dialog/attrdialog.cpp')
| -rw-r--r-- | src/ui/dialog/attrdialog.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp index a499602ce..994f2695c 100644 --- a/src/ui/dialog/attrdialog.cpp +++ b/src/ui/dialog/attrdialog.cpp @@ -336,16 +336,13 @@ void AttrDialog::onAttrChanged(Inkscape::XML::Node *repr, const gchar * name, co break; } } - if (new_value && strcmp(new_value, "") != 0) { - if ((repr->type() == Inkscape::XML::TEXT_NODE || repr->type() == Inkscape::XML::COMMENT_NODE) && - strcmp(name, "content") != 0) - { - return; - } else { - Gtk::TreeModel::Row row = *(_store->prepend()); - row[_attrColumns._attributeName] = name; - row[_attrColumns._attributeValue] = new_value; - } + if (new_value && + (strcmp(new_value, "") != 0 || + (repr->type() == Inkscape::XML::TEXT_NODE || + repr->type() == Inkscape::XML::COMMENT_NODE))) { + Gtk::TreeModel::Row row = *(_store->prepend()); + row[_attrColumns._attributeName] = name; + row[_attrColumns._attributeValue] = new_value; } } |
