From bfa46a007cd77bd71f6116f55a66d2c152ae58c0 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 5 Feb 2006 21:33:04 +0000 Subject: [PATCH] enable selecting tspans via xml editor --- src/dialogs/xml-tree.cpp | 12 ++++-------- 1 file 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--; -- 2.30.2