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:
parent
cfa3b25626
commit
51ad652fa2
@ -430,7 +430,7 @@ int wxBookCtrlBase::DoSetSelection(size_t n, int flags)
|
|||||||
|
|
||||||
const int oldSel = GetSelection();
|
const int oldSel = GetSelection();
|
||||||
|
|
||||||
if ( oldSel != wxNOT_FOUND && n != (size_t)oldSel )
|
if ( n != (size_t)oldSel )
|
||||||
{
|
{
|
||||||
wxBookCtrlBaseEvent *event = CreatePageChangingEvent();
|
wxBookCtrlBaseEvent *event = CreatePageChangingEvent();
|
||||||
bool allowed = false;
|
bool allowed = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user