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