set array size correctly in wxArrayString::Shrink() (bug 797758)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-30 20:55:43 +00:00
parent bf2b70693b
commit 849e641411
2 changed files with 2 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ All:
- wxRegEx::Compile() now calculates the number of groups correctly
- wxHTTP::GetHeader() didn't find headers which not all in upper case
- wxString::find_last_of() ignored "start" parameter (Robert Vazan)
- a bug in wxArrayString::Shrink() fixed (Gunnar Roth)
All (GUI):

View File

@@ -1902,6 +1902,7 @@ void wxArrayString::Shrink()
memcpy(pNew, m_pItems, m_nCount*sizeof(wxChar *));
delete [] m_pItems;
m_pItems = pNew;
m_nSize = m_nCount;
}
}