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
This commit is contained in:
Stefan Neis
2009-03-14 18:36:08 +00:00
parent 84230e6740
commit 39db4aa8ed

View File

@@ -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;
}
}