X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8c736e563cbf50bc5825c1a52878403ee48f513..49a91764b57168d9f441578001b3206a7330ee70:/src/mac/carbon/choice.cpp?ds=sidebyside diff --git a/src/mac/carbon/choice.cpp b/src/mac/carbon/choice.cpp index ec6a728102..67aee1e928 100644 --- a/src/mac/carbon/choice.cpp +++ b/src/mac/carbon/choice.cpp @@ -77,7 +77,7 @@ int wxChoice::DoAppend(const wxString& item) m_datas.Add( NULL ) ; int index = m_strings.GetCount() - 1 ; DoSetItemClientData( index , NULL ) ; - SetControlMaximum( m_macControl , Number()) ; + SetControlMaximum( m_macControl , GetCount()) ; return index ; } @@ -93,7 +93,7 @@ void wxChoice::Delete(int n) ::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ; m_strings.Remove( n ) ; m_datas.Remove( n ) ; - SetControlMaximum( m_macControl , Number()) ; + SetControlMaximum( m_macControl , GetCount()) ; } void wxChoice::Clear()