From: Matti Tahvonen Date: Tue, 14 Aug 2007 04:46:55 +0000 (+0000) Subject: changed "nodes" without children (but areChildrenAllowed == true) to be leafs in... X-Git-Tag: 6.7.0.beta1~6110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f3cfb0c878404fbbe10c0e9b3ed2b0cc30559c5;p=vaadin-framework.git changed "nodes" without children (but areChildrenAllowed == true) to be leafs in uidl svn changeset:1994/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/Tree.java b/src/com/itmill/toolkit/ui/Tree.java index 503a03609d..bdc2d97369 100644 --- a/src/com/itmill/toolkit/ui/Tree.java +++ b/src/com/itmill/toolkit/ui/Tree.java @@ -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