X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd11f777738a2572d3ee6b866d103cff5edfb667..e6ba38871f6cc5c02391c04e37e481d0428cef3f:/src/generic/odcombo.cpp diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index fa036b21e2..618375b221 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 ( (int)m_clientDatas.size() >= pos ) + m_clientDatas.Insert(NULL, pos); m_widths.Insert(-1,pos); m_widthsDirty = true;