X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dd11f90ad4ebaf6b6980655802d9a014649b6c9..7aa5864467bf0bb220fdc447876f13f178ae8f35:/src/mac/choice.cpp diff --git a/src/mac/choice.cpp b/src/mac/choice.cpp index 73dfa522d3..67aee1e928 100644 --- a/src/mac/choice.cpp +++ b/src/mac/choice.cpp @@ -13,7 +13,8 @@ #pragma implementation "choice.h" #endif -// For compilers that support precompilation, includes "wx.h". +#include "wx/defs.h" + #include "wx/choice.h" #include "wx/menu.h" #include "wx/mac/uma.h" @@ -76,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 ; } @@ -92,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()