A wrong variable was mistakenly used.
Closes #13371.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68470
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Grow(nInsert); \
\
/* old iterator could have been invalidated by Grow(). */ \
Grow(nInsert); \
\
/* old iterator could have been invalidated by Grow(). */ \
- it = begin() + nInsert; \
+ it = begin() + nIndex; \
\
memmove(&m_pItems[nIndex + nInsert], &m_pItems[nIndex], \
(m_nCount - nIndex)*sizeof(T)); \
\
memmove(&m_pItems[nIndex + nInsert], &m_pItems[nIndex], \
(m_nCount - nIndex)*sizeof(T)); \