Do not insert client data if client data is not used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -477,7 +477,8 @@ void wxVListBoxComboPopup::Insert( const wxString& item, int pos )
|
||||
}
|
||||
|
||||
m_strings.Insert(item,pos);
|
||||
m_clientDatas.Insert(NULL, pos);
|
||||
if ( m_clientDatas.size() >= pos )
|
||||
m_clientDatas.Insert(NULL, pos);
|
||||
|
||||
m_widths.Insert(-1,pos);
|
||||
m_widthsDirty = true;
|
||||
|
||||
Reference in New Issue
Block a user