]> git.saurik.com Git - wxWidgets.git/commit
Fix crash in wxListbook if image list is assigned after adding pages.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:37:08 +0000 (00:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:37:08 +0000 (00:37 +0000)
commit476de5ea9a695d360cd0f65761712526dd2178ee
tree1e4e05c2054a1f05f73a2103815923e7e679493e
parent77e82897f298f1c0cf1458ad1e4ce42115e46ea4
Fix crash in wxListbook if image list is assigned after adding pages.

The generic wxListCtrl didn't properly support switching between report and
non-report modes without invalidating the control contents, the required in
non report view geometry info pointers were not allocated when the control was
switched to a, say, list mode and not created in it.

Fix this by updating all list control lines when the report mode changes.

Closes #11698.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/private/listctrl.h
src/generic/listctrl.cpp