From 39db4aa8ede3353f3f6b5fad1c0a8648d1efbd7e Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 14 Mar 2009 18:36:08 +0000 Subject: [PATCH] Update m_nSize when shrinking wxArrayString (fixes #10591). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/string.cpp b/src/common/string.cpp index 166769dd4b..9fe9771018 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2330,6 +2330,7 @@ void wxArrayString::Shrink() memcpy(pNew, m_pItems, m_nCount*sizeof(wxChar *)); delete [] m_pItems; m_pItems = pNew; + m_nSize = m_nCount; } }