summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/xml-tree.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-01-17 18:45:16 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-01-17 18:45:16 +0000
commitb04e3d7c17f1eb0624031962608bf14e473a1460 (patch)
treed7fc4e0a67b969f51764b1141491beac2be4231d /src/ui/dialog/xml-tree.cpp
parentRemove confusing and broken save as PNG option (diff)
downloadinkscape-b04e3d7c17f1eb0624031962608bf14e473a1460.tar.gz
inkscape-b04e3d7c17f1eb0624031962608bf14e473a1460.zip
Allow edit text nodes with the XMLInspector
Diffstat (limited to 'src/ui/dialog/xml-tree.cpp')
-rw-r--r--src/ui/dialog/xml-tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/xml-tree.cpp b/src/ui/dialog/xml-tree.cpp
index c6058945f..26c1e964b 100644
--- a/src/ui/dialog/xml-tree.cpp
+++ b/src/ui/dialog/xml-tree.cpp
@@ -353,7 +353,7 @@ void XmlTree::set_tree_select(Inkscape::XML::Node *repr)
void XmlTree::propagate_tree_select(Inkscape::XML::Node *repr)
{
- if (repr && (repr->type() == Inkscape::XML::ELEMENT_NODE)) {
+ if (repr && (repr->type() == Inkscape::XML::ELEMENT_NODE || repr->type() == Inkscape::XML::TEXT_NODE)) {
attributes->setRepr(repr);
} else {
attributes->setRepr(nullptr);