]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
don't mention GUI-only changes in the base section
[wxWidgets.git] / src / common / string.cpp
index e2563e5c824bc1bfc8e07aafc5443a0fbb827964..32a0adab794701d9f9fbd456e5f9e415e85a60b7 100644 (file)
@@ -1762,6 +1762,8 @@ void wxArrayString::Grow(size_t nIncrement)
     if ( m_nSize == 0 ) {
       // was empty, alloc some memory
       m_nSize = ARRAY_DEFAULT_INITIAL_SIZE;
+      if (m_nSize < nIncrement)
+          m_nSize = nIncrement;
       m_pItems = new wxChar *[m_nSize];
     }
     else {