]> git.saurik.com Git - wxWidgets.git/commit - src/generic/choicbkg.cpp
Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Jun 2013 16:39:39 +0000 (16:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Jun 2013 16:39:39 +0000 (16:39 +0000)
commit4f9ccec517819034d34d0b74a68659ccd6be272f
treeb983f03bdc8db52d7913bcbbab888d2e36ff411e
parent6f71e062428e8a74763eee7fb85d04ea24a70988
Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook.

This fixes the wrong handling of the selection in wxSimplebook when the
currently selected page was deleted.

Also extend the unit tests to check for this bug.

Closes #15188.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/bookctrl.h
include/wx/simplebook.h
src/common/bookctrl.cpp
src/generic/choicbkg.cpp
src/generic/listbkg.cpp
src/generic/toolbkg.cpp
tests/controls/bookctrlbasetest.cpp