Simplified generic wxDataViewCtrl's tree structure.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:19 +0000 (13:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:19 +0000 (13:24 +0000)
commit422aa8ecfeb6e2cbd1a800cd8958903733183d67
treea79a3980d4a55ace3ed9402d1fe71d54cce731dd
parentb632efe0d6c20859df77653dd3c62f25c0e493bd
Simplified generic wxDataViewCtrl's tree structure.

Use just one type, wxDataViewTreeNode, to represent any kind of node.
Previously a complicated structure that represented leaves and non-leaf
nodes differently was used. This make the code way too complicated and
caused some smaller bugs (see e.g. #13256).

As a side effect, this change makes the control react correctly to
changes in IsContainer() return values.

Also fixes #13256.

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