summaryrefslogtreecommitdiffstats
path: root/src/dialogs/xml-tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/xml-tree.cpp')
-rw-r--r--src/dialogs/xml-tree.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/dialogs/xml-tree.cpp b/src/dialogs/xml-tree.cpp
index 079a09b5a..fe51f0144 100644
--- a/src/dialogs/xml-tree.cpp
+++ b/src/dialogs/xml-tree.cpp
@@ -807,15 +807,11 @@ void set_dt_select(Inkscape::XML::Node *repr)
blocked++;
if ( object && in_dt_coordsys(*object)
- && !( SP_IS_TSPAN(object) ||
- SP_IS_STRING(object) ||
- SP_IS_ROOT(object) ) )
+ && !(SP_IS_STRING(object) ||
+ SP_IS_ROOT(object) ) )
{
- /* We cannot set selection to tspan, string, or root; failures and
- * crashes will occur. */
- /* TODO: when a tspan is highlighted, set selection to its parent
- * text
- */
+ /* We cannot set selection to root or string - they are not items and selection is not
+ * equipped to deal with them */
selection->set(SP_ITEM(object));
}
blocked--;