X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..d9f9aa2d8fcb956444588b2c19ffe8d4a3f5d2bb:/src/mac/choice.cpp diff --git a/src/mac/choice.cpp b/src/mac/choice.cpp index e9a8357ea5..73dfa522d3 100644 --- a/src/mac/choice.cpp +++ b/src/mac/choice.cpp @@ -91,7 +91,8 @@ void wxChoice::Delete(int n) ::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ; m_strings.Remove( n ) ; - SetControlMaximum( m_macControl , Number()) ; + m_datas.Remove( n ) ; + SetControlMaximum( m_macControl , Number()) ; } void wxChoice::Clear() @@ -104,7 +105,7 @@ void wxChoice::Clear() } m_strings.Empty() ; m_datas.Empty() ; - SetControlMaximum( m_macControl , 0 ) ; + SetControlMaximum( m_macControl , 0 ) ; } void wxChoice::Free()