From: Jaakko Salli Date: Fri, 19 Sep 2008 16:43:40 +0000 (+0000) Subject: Do not insert client data if client data is not used X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/57306cd4fddeaaeaad2b5f4b2145370d38a57924 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 --- diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index fa036b21e2..c4f23b9109 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -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;