X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c5c5c9cfd18dbad30de0b703659c1b81a155a65..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/common/dynarray.cpp?ds=sidebyside 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)); \