summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-01-17 23:34:24 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-01-17 23:34:24 +0000
commit31fbddf4cde8d248b10f2160e4b3d6ce6ccdcdef (patch)
treeb936c92e93d8964d9b4692c3c3d9b0421267ebeb /src
parentAllow edit text nodes with the XMLInspector (diff)
downloadinkscape-31fbddf4cde8d248b10f2160e4b3d6ce6ccdcdef.tar.gz
inkscape-31fbddf4cde8d248b10f2160e4b3d6ce6ccdcdef.zip
Allow edit comment nodes with the XMLInspector
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/xml-tree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/xml-tree.cpp b/src/ui/dialog/xml-tree.cpp
index 26c1e964b..7d8f0a296 100644
--- a/src/ui/dialog/xml-tree.cpp
+++ b/src/ui/dialog/xml-tree.cpp
@@ -353,7 +353,11 @@ 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 || repr->type() == Inkscape::XML::TEXT_NODE)) {
+ if (repr &&
+ (repr->type() == Inkscape::XML::ELEMENT_NODE ||
+ repr->type() == Inkscape::XML::TEXT_NODE ||
+ repr->type() == Inkscape::XML::COMMENT_NODE))
+ {
attributes->setRepr(repr);
} else {
attributes->setRepr(nullptr);