From: buliabyak Date: Sun, 5 Feb 2006 21:33:04 +0000 (+0000) Subject: enable selecting tspans via xml editor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bfa46a007cd77bd71f6116f55a66d2c152ae58c0;p=inkscape.git enable selecting tspans via xml editor --- 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--;