X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b11752c4f9e1fd4b11ba3d184246267facb3ad3..c5c1ea964817e562d1c4b0d89b3937fce28c3f10:/include/wx/choicebk.h diff --git a/include/wx/choicebk.h b/include/wx/choicebk.h index 46014cc251..4daa5b28ff 100644 --- a/include/wx/choicebk.h +++ b/include/wx/choicebk.h @@ -97,7 +97,7 @@ protected: void UpdateSelectedPage(size_t newsel) { m_selection = static_cast(newsel); - GetChoiceCtrl()->Select(newsel); + GetChoiceCtrl()->Select(m_selection); } wxBookCtrlEvent* CreatePageChangingEvent() const;