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:
Jaakko Salli
2008-09-19 16:43:40 +00:00
parent 96e6ebe64a
commit 57306cd4fd

View File

@@ -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;