]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for wxToolbook, allow oldSel == wxNOT_FOUND when changing to a
authorRobin Dunn <robin@alldunn.com>
Fri, 13 Oct 2006 18:33:54 +0000 (18:33 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 13 Oct 2006 18:33:54 +0000 (18:33 +0000)
new selection.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/bookctrl.cpp

index db698594dd209817e76bc5e971b181d7d354ee8c..fef420180a359574454f991430996f4270b6a54e 100644 (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;