diff --git a/docs/changes.txt b/docs/changes.txt index 7b71798fdc..5d74743a8d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -186,6 +186,7 @@ wxBase - compilation with wxUSE_ODBC=1 fixed (dbkeyg.h file was missing in the archive) - bug in wxDateTime with timezones on systems with tm_gmtoff in struct tm fixed +- fixed bug in wxArray::Shrink() (Seth Manley) wxGTK: diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index 4d0ee51d28..25a80d3860 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -189,6 +189,7 @@ void name::Shrink() \ memcpy(pNew, m_pItems, m_nCount*sizeof(T)); \ delete [] m_pItems; \ m_pItems = pNew; \ + m_nSize = m_nCount; \ } \ } \ } \