Skip to content

Commit 143de38

Browse files
committed
Update simba.pixelocr.pas
1 parent 9954190 commit 143de38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/simba.pixelocr.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,16 +609,16 @@ function TPixelOCR.RecognizeLines(Image: TSimbaImage; constref Font: TPixelFont;
609609
var
610610
isBinary: Boolean;
611611
Match: TPixelOCRMatch;
612-
i: Integer;
612+
c: Char;
613613
begin
614614
if (Length(Font.Glyphs) = 0) then
615615
SimbaException('Font is empty');
616616

617617
if not AlphaNumSymbolTableInitialized then
618618
begin
619619
FillChar(AlphaNumSymbolTable, SizeOf(AlphaNumSymbolTable), False);
620-
for i := 0 to High(ALPHA_NUM_SYMBOLS) do
621-
AlphaNumSymbolTable[ALPHA_NUM_SYMBOLS[i]] := True;
620+
for c in ALPHA_NUM_SYMBOLS do
621+
AlphaNumSymbolTable[c] := True;
622622
AlphaNumSymbolTableInitialized := True;
623623
end;
624624

0 commit comments

Comments
 (0)