diff --git a/src/common/string.cpp b/src/common/string.cpp index 0de23bf158..92573c4d4b 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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; }