From: Vadim Zeitlin Date: Sun, 31 Jul 2011 12:19:51 +0000 (+0000) Subject: Correct typo in wxArray::insert() fix of r68468. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bd5754f2531ab75430f2177a28bff5645600a5ff Correct typo in wxArray::insert() fix of r68468. 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 --- diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index 175fa4a36e..8d62ca6b06 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -359,7 +359,7 @@ void name::insert(iterator it, const_iterator first, const_iterator last) \ 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)); \