fixed wxString::resize() which was completely broken

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-11-02 18:17:38 +00:00
parent 4d509295ee
commit eb749c3e37

View File

@@ -1632,7 +1632,7 @@ void wxString::resize(size_t nSize, wxChar ch)
} }
else if ( nSize > len ) else if ( nSize > len )
{ {
*this += wxString(ch, len - nSize); *this += wxString(ch, nSize - len);
} }
//else: we have exactly the specified length, nothing to do //else: we have exactly the specified length, nothing to do
} }