]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
applied the bit's of #473508 that were still relevant, and fixed a couple of
[wxWidgets.git] / src / common / string.cpp
index 3fdcf1e0de455fd04cd125877be0fb605ad5c668..680cc70c2bb076599db9bfc6575f3a6123d9b9b2 100644 (file)
@@ -1632,7 +1632,7 @@ void wxString::resize(size_t nSize, wxChar ch)
     }
     else if ( nSize > len )
     {
-        *this += wxString(ch, len - nSize);
+        *this += wxString(ch, nSize - len);
     }
     //else: we have exactly the specified length, nothing to do
 }