delete now does remove the item in correct synch from m_datas and m_strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,6 +91,7 @@ void wxChoice::Delete(int n)
|
|||||||
|
|
||||||
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
|
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
|
||||||
m_strings.Remove( n ) ;
|
m_strings.Remove( n ) ;
|
||||||
|
m_datas.Remove( n ) ;
|
||||||
SetControlMaximum( m_macControl , Number()) ;
|
SetControlMaximum( m_macControl , Number()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -91,6 +91,7 @@ void wxChoice::Delete(int n)
|
|||||||
|
|
||||||
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
|
::DeleteMenuItem( m_macPopUpMenuHandle , n + 1) ;
|
||||||
m_strings.Remove( n ) ;
|
m_strings.Remove( n ) ;
|
||||||
|
m_datas.Remove( n ) ;
|
||||||
SetControlMaximum( m_macControl , Number()) ;
|
SetControlMaximum( m_macControl , Number()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user