]> source.dussan.org Git - vaadin-framework.git/commitdiff
changed "nodes" without children (but areChildrenAllowed == true) to be leafs in...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 04:46:55 +0000 (04:46 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 04:46:55 +0000 (04:46 +0000)
svn changeset:1994/svn branch:trunk

src/com/itmill/toolkit/ui/Tree.java

index 503a03609d48375235275942be4d15659410976d..bdc2d97369357a7967a69c473c321a15197da28a 100644 (file)
@@ -438,7 +438,7 @@ public class Tree extends Select implements Container.Hierarchical,
                                Object itemId = i.next();
 
                                // Starts the item / node
-                               boolean isNode = areChildrenAllowed(itemId);
+                               boolean isNode = areChildrenAllowed(itemId) && hasChildren(itemId);
                                if (isNode)
                                        target.startTag("node");
                                else