]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
VZ: I removed (CASTWNDPROC) from ::CallWndProc - it doesn't compile here with it
[wxWidgets.git] / src / common / string.cpp
index ac64abaeb62e35edb86ffb51ef1c7948b894c160..7e6e2270d770356a230236d4399db6a24dc36b29 100644 (file)
@@ -1089,9 +1089,9 @@ wxArrayString::wxArrayString(const wxArrayString& src)
 // assignment operator
 wxArrayString& wxArrayString::operator=(const wxArrayString& src)
 {
-  Clear();
+  if ( m_nSize > 0 )
+    Clear();
 
-  m_nSize = 0;
   if ( src.m_nCount > ARRAY_DEFAULT_INITIAL_SIZE )
     Alloc(src.m_nCount);