From d1c9bbf64dbe6b087397ad56ddb6942c1ff80a16 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 16 Jun 1998 12:41:33 +0000 Subject: [PATCH] "-1" index error in wxString::Before fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2