]> git.saurik.com Git - wxWidgets.git/commitdiff
* Bug fixed in CountTokens()
authorGuilhem Lavaux <lavaux@easynet.fr>
Wed, 23 Jun 1999 17:13:12 +0000 (17:13 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Wed, 23 Jun 1999 17:13:12 +0000 (17:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tokenzr.cpp

index 837243cac6c575a1534e733a9147adc77295761f..6b5d18e1782e9d1ffc391af338850937840a66ea 100644 (file)
@@ -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
         {