summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/attrdialog.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-08-22 07:01:44 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-08-22 07:01:44 +0000
commit94c52ce50ea41ef6d442f748d6714a8ea0253289 (patch)
tree9781c67a66fc391de9461bd33d5df6a6ff5cbae7 /src/ui/dialog/attrdialog.cpp
parentMerge XML and CSS widgets improvements from https://gitlab.com/inkscape/inksc... (diff)
downloadinkscape-94c52ce50ea41ef6d442f748d6714a8ea0253289.tar.gz
inkscape-94c52ce50ea41ef6d442f748d6714a8ea0253289.zip
Allow edit empty text nodes
Diffstat (limited to 'src/ui/dialog/attrdialog.cpp')
-rw-r--r--src/ui/dialog/attrdialog.cpp17
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;
}
}