fixed a serious bug in Shrink()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,6 +186,7 @@ wxBase
|
|||||||
|
|
||||||
- compilation with wxUSE_ODBC=1 fixed (dbkeyg.h file was missing in the archive)
|
- 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
|
- bug in wxDateTime with timezones on systems with tm_gmtoff in struct tm fixed
|
||||||
|
- fixed bug in wxArray::Shrink() (Seth Manley)
|
||||||
|
|
||||||
wxGTK:
|
wxGTK:
|
||||||
|
|
||||||
|
@@ -189,6 +189,7 @@ void name::Shrink() \
|
|||||||
memcpy(pNew, m_pItems, m_nCount*sizeof(T)); \
|
memcpy(pNew, m_pItems, m_nCount*sizeof(T)); \
|
||||||
delete [] m_pItems; \
|
delete [] m_pItems; \
|
||||||
m_pItems = pNew; \
|
m_pItems = pNew; \
|
||||||
|
m_nSize = m_nCount; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
Reference in New Issue
Block a user