]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bookctrl.cpp
Fix for always failing assert in GetValue. Save the same value that
[wxWidgets.git] / 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;