Browse Source

+ Fix for bug #4222 by Rodrigo Robles

git-svn-id: trunk@745 -
michael 20 years ago
parent
commit
42f219cfc4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/objpas/strutils.pp

+ 3 - 0
rtl/objpas/strutils.pp

@@ -1168,7 +1168,10 @@ begin
   Count:=WordCount(S, WordDelims);
   Count:=WordCount(S, WordDelims);
   I:=1;
   I:=1;
   While (Not Result) and (I<=Count) do
   While (Not Result) and (I<=Count) do
+    begin
     Result:=ExtractWord(i,S,WordDelims)=W;
     Result:=ExtractWord(i,S,WordDelims)=W;
+    Inc(i);
+    end;
 end;
 end;