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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user