Skip to content

Commit 53da540

Browse files
committed
correct stack overflow
1 parent 7996014 commit 53da540

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Alcinoe.FMX.Controls.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ procedure TALControl.BeginTextUpdate;
339339
if AControl.Controls[i] is TALControl then
340340
TALControl(AControl.Controls[i]).BeginTextUpdate
341341
else
342-
DoBeginTextUpdate(AControl);
342+
DoBeginTextUpdate(AControl.Controls[i]);
343343
end;
344344

345345
begin
@@ -357,7 +357,7 @@ procedure TALControl.EndTextUpdate;
357357
if AControl.Controls[i] is TALControl then
358358
TALControl(AControl.Controls[i]).EndTextUpdate
359359
else
360-
DoEndTextUpdate(AControl);
360+
DoEndTextUpdate(AControl.Controls[i]);
361361
end;
362362

363363
begin
@@ -1095,7 +1095,7 @@ function TALControl.IsReadyToDisplay: Boolean;
10951095
Result := True;
10961096
for var I := 0 to AControl.ControlsCount - 1 do begin
10971097
if AControl.Controls[i] is TALControl then Result := TALControl(AControl.Controls[i]).IsReadyToDisplay
1098-
else Result := CheckAllChildrenAreReadyToDisplay(AControl);
1098+
else Result := CheckAllChildrenAreReadyToDisplay(AControl.Controls[i]);
10991099
if not Result then exit;
11001100
end;
11011101
end;

0 commit comments

Comments
 (0)