"-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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user