]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxString::resize() which was completely broken
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 Nov 2001 18:17:38 +0000 (18:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 Nov 2001 18:17:38 +0000 (18:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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
 }