]> git.saurik.com Git - wxWidgets.git/commit
Reset wxAuiNotebook selection to wxNOT_FOUND if it becomes empty.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Mar 2010 13:30:01 +0000 (13:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Mar 2010 13:30:01 +0000 (13:30 +0000)
commit917f228a1ff11c0580386828da786f2d04b29999
treed5d5502e7fee0c7a3b9a3e211fa2d196420d04d2
parenta45c9ba59b610080585f76b0d02e1f1499c96ffe
Reset wxAuiNotebook selection to wxNOT_FOUND if it becomes empty.

The selection was 0 in a notebook without any pages which was wrong as it must
always be less than the page count.

Fix this in wxAuiNotebook itself and add an assert checking for this invariant
to the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/aui/auidemo.cpp
src/aui/auibook.cpp