]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynarray.cpp
Add various selection menu items to the sample.
[wxWidgets.git] / 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));                                   \