]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct typo in wxArray::insert() fix of r68468.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Jul 2011 12:19:51 +0000 (12:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Jul 2011 12:19:51 +0000 (12:19 +0000)
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

src/common/dynarray.cpp

index 175fa4a36e30522d6e5615a9b5839151009025ad..8d62ca6b06101e411e656886e72367ee9759fb16 100644 (file)
@@ -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));                                   \