Code

enable selecting tspans via xml editor
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 5 Feb 2006 21:33:04 +0000 (21:33 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 5 Feb 2006 21:33:04 +0000 (21:33 +0000)
src/dialogs/xml-tree.cpp

index 079a09b5a23d120c32721e9c967682be7dab9e88..fe51f014469e79174d9ad6bd3f5f6b75c892f7a9 100644 (file)
@@ -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--;