summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77ce149)
raw | patch | inline | side by side (parent: 77ce149)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 5 Feb 2006 21:33:04 +0000 (21:33 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 5 Feb 2006 21:33:04 +0000 (21:33 +0000) |
src/dialogs/xml-tree.cpp | patch | blob | history |
index 079a09b5a23d120c32721e9c967682be7dab9e88..fe51f014469e79174d9ad6bd3f5f6b75c892f7a9 100644 (file)
--- a/src/dialogs/xml-tree.cpp
+++ b/src/dialogs/xml-tree.cpp
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--;