fix (harmless) MSVC 64 bit compilation warning (closes #10140)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Mar 2009 21:58:15 +0000 (21:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Mar 2009 21:58:15 +0000 (21:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/choicebk.h

index 46014cc251c8a978d1399b90d3128c77626648b6..4daa5b28fff19e04acedba7b88308396d177115c 100644 (file)
@@ -97,7 +97,7 @@ protected:
     void UpdateSelectedPage(size_t newsel)
     {
         m_selection = static_cast<int>(newsel);
-        GetChoiceCtrl()->Select(newsel);
+        GetChoiceCtrl()->Select(m_selection);
     }
 
     wxBookCtrlEvent* CreatePageChangingEvent() const;