]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
Applied patch [ 1701723 ] wxAUI: Added event for doubleclicks on the tabbar bg
[wxWidgets.git] / src / common / treebase.cpp
index f10e2af927b24c6b40ecdf0924b6bead4fb33566..eb37c0dbdb1aef6c7fa7520b31cf62d2f906bbed 100644 (file)
@@ -193,7 +193,9 @@ void wxTreeCtrlBase::ExpandAllChildren(const wxTreeItemId& item)
 {
     // expand this item first, this might result in its children being added on
     // the fly
-    Expand(item);
+    if ( item != GetRootItem() || !HasFlag(wxTR_HIDE_ROOT) )
+        Expand(item);
+    //else: expanding hidden root item is unsupported and unnecessary
 
     // then (recursively) expand all the children
     wxTreeItemIdValue cookie;