Revision: 3836
          http://vexi.svn.sourceforge.net/vexi/?rev=3836&view=rev
Author:   clrg
Date:     2010-04-19 11:33:50 +0000 (Mon, 19 Apr 2010)

Log Message:
-----------
Allow for non-tree children

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/tree.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/tree.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/tree.t    
2010-04-13 22:59:19 UTC (rev 3835)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/tree.t    
2010-04-19 11:33:50 UTC (rev 3836)
@@ -58,12 +58,16 @@
                 if (lastchild) {
                     lastchild.y --= syncTrailTrap;
                     lastchild.display --= displayLastChild;
-                    lastchild.th_node.height --= syncTrailTrap;
+                    if (lastchild.th_node) {
+                        lastchild.th_node.height --= syncTrailTrap;
+                    }
                 }
                 if (lastc) {
                     lastc.y ++= syncTrailTrap;
                     lastc.display ++= displayLastChild;
-                    lastc.th_node.height ++= syncTrailTrap;
+                    if (lastc.th_node) {
+                        lastc.th_node.height ++= syncTrailTrap;
+                    }
                 }
                 lastchild = lastc;
                 lastindex = lastchild ? v_content.indexof(lastchild) : -1;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to