Fix for wxToolbook, allow oldSel == wxNOT_FOUND when changing to a

new selection.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-10-13 18:33:54 +00:00
parent cfa3b25626
commit 51ad652fa2

View File

@ -430,7 +430,7 @@ int wxBookCtrlBase::DoSetSelection(size_t n, int flags)
const int oldSel = GetSelection();
if ( oldSel != wxNOT_FOUND && n != (size_t)oldSel )
if ( n != (size_t)oldSel )
{
wxBookCtrlBaseEvent *event = CreatePageChangingEvent();
bool allowed = false;