X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd11f777738a2572d3ee6b866d103cff5edfb667..33a1719a95b800e06231c0b2e3337cbe2632eb34:/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;