From 94c52ce50ea41ef6d442f748d6714a8ea0253289 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Thu, 22 Aug 2019 09:01:44 +0200 Subject: Allow edit empty text nodes --- src/ui/dialog/attrdialog.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3