1
0
mirror of https://github.com/moparisthebest/Simba synced 2025-02-07 02:30:19 -05:00

Fixed the len-parameter.. :-)

This commit is contained in:
Raymond 2010-04-09 23:12:55 +02:00
parent 78d7614e5d
commit 44c4322d0f

View File

@ -710,6 +710,7 @@ var
STPA: T2DPointArray;
begin
Result := '';
fD := FFonts.GetFont(font);
{writeln(format('W, H: %d, %d', [fD.max_width, fd.max_height]));}
@ -771,8 +772,10 @@ begin
lbset := false;
SetLength(Result, 0);
SetLength(n, (fd.width + 1) * (fd.height + 1));
for i := 0 to min(high(STPA),len) do
for i := 0 to high(STPA) do
begin
if length(result) >= len then
exit;
for j := 0 to high(n) do
n[j] := 0;
TPA := STPA[i];