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;