Skip to content

Commit da643ff

Browse files
committed
Fixed: Does not display many HTML Forms properly #356
- Hide objects (images and form controls) that are styled as "Display=none".
1 parent 2356421 commit da643ff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/HTMLSubs.pas

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16683,14 +16683,19 @@ procedure TFloatingObjList.SetItem(Index: Integer; const Item: TFloatingObj);
1668316683
function TFloatingObjList.GetObjectAt(Posn: Integer; out Obj): Integer;
1668416684
var
1668516685
I: Integer;
16686+
FlObj: TFloatingObj absolute Obj;
1668616687
begin
1668716688
for I := 0 to Count - 1 do
1668816689
begin
1668916690
Result := Items[I].StartCurs - Posn;
1669016691
if Result >= 0 then
1669116692
begin
16692-
TFloatingObj(Obj) := Items[I];
16693-
Exit;
16693+
FlObj := Items[I];
16694+
if FlObj.Display <> pdNone then
16695+
begin
16696+
TFloatingObj(Obj) := FlObj;
16697+
Exit;
16698+
end;
1669416699
end;
1669516700
end;
1669616701

0 commit comments

Comments
 (0)