"-1" index error in wxString::Before fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-06-16 12:41:33 +00:00
parent 8d31c13865
commit d1c9bbf64d

View File

@@ -603,7 +603,7 @@ wxString wxString::Before(char ch) const
wxString str;
int iPos = Find(ch, TRUE);
if ( iPos != NOT_FOUND && iPos != 0 )
str = wxString(c_str(), iPos - 1);
str = wxString(c_str(), iPos);
return str;
}