From: Guilhem Lavaux Date: Wed, 23 Jun 1999 17:13:12 +0000 (+0000) Subject: * Bug fixed in CountTokens() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44d6d19123a54b00fbd8423e6b72e6d782976c00 * Bug fixed in CountTokens() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/tokenzr.cpp b/src/common/tokenzr.cpp index 837243cac6..6b5d18e178 100644 --- a/src/common/tokenzr.cpp +++ b/src/common/tokenzr.cpp @@ -66,7 +66,7 @@ int wxStringTokenizer::CountTokens() const if (pos != -1) { count++; - p_string = p_string(0, pos); + p_string = p_string(pos+1, p_string.Length()); } else {