From: Stefan Neis Date: Sat, 14 Mar 2009 18:34:46 +0000 (+0000) Subject: Update m_nSize when shrinking wxArrayString (fixes #10591). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d9a40f7b86c35d9b119747103514c1b77a3b491a Update m_nSize when shrinking wxArrayString (fixes #10591). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/arrstr.cpp b/src/common/arrstr.cpp index fa303bd756..81252acc0b 100644 --- a/src/common/arrstr.cpp +++ b/src/common/arrstr.cpp @@ -206,6 +206,7 @@ void wxArrayString::Shrink() pNew[j] = m_pItems[j]; delete [] m_pItems; m_pItems = pNew; + m_nSize = m_nCount } }