Browse Source

+ initialize CharWidth with default function

mazen 21 years ago
parent
commit
68d53805db
1 changed files with 5 additions and 1 deletions
  1. 5 1
      rtl/objpas/freebidi.pp

+ 5 - 1
rtl/objpas/freebidi.pp

@@ -140,7 +140,7 @@ var
 begin
   Result := 0;
   Count := Length(Src);
-  while (Count>0) do
+  while (Count > 0) do
   begin
     Result += CharWidth(Src[Count], FontInfoPtr);
     Count -= 1;
@@ -349,5 +349,9 @@ begin
     Result[vp] := Src[v2lSrc[vp]];
 end;
 
+initialization
+
+  CharWidth := @DefaultCharWidth;
+
 end.