Avoid collapsing the hidden root in wxTreeCtrl::CollapseAllChildren().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 10:46:19 +0000 (10:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 10:46:19 +0000 (10:46 +0000)
commit06f1b70464321aad204a8eb48b9f8a43a982f15d
tree1e218dce1ae129b52506a3eac8de0103e0b7526a
parent039aec5345396f28083b5e2bdc2d45dbffab6f61
Avoid collapsing the hidden root in wxTreeCtrl::CollapseAllChildren().

The hidden root item can't be collapsed so don't even try to do it as this
just results in an assert.

This is similar to the changes of r48097 in ExpandAllChildren().

Closes #12881.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/treebase.cpp