mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 16:39:19 +02:00
Improve TurboPower IPro. Issue #24840, patch from Christian
git-svn-id: trunk@42401 -
This commit is contained in:
parent
4be93112dd
commit
dacbf1a4cf
@ -5257,7 +5257,7 @@ begin
|
|||||||
if Background <> '' then begin
|
if Background <> '' then begin
|
||||||
if BgPicture = nil then
|
if BgPicture = nil then
|
||||||
Owner.DoGetImage(Self, Owner.BuildPath(Background), BgPicture);
|
Owner.DoGetImage(Self, Owner.BuildPath(Background), BgPicture);
|
||||||
if BgPicture <> nil then begin
|
if (BgPicture <> nil) and (BgPicture.Height>0) and (BgPicture.Width>0) then begin
|
||||||
MaxX := MaxI2(PageRect.Right, Owner.ClientRect.Right); {!!.02}
|
MaxX := MaxI2(PageRect.Right, Owner.ClientRect.Right); {!!.02}
|
||||||
MaxY := MaxI2(PageRect.Bottom, Owner.ClientRect.Bottom); {!!.02}
|
MaxY := MaxI2(PageRect.Bottom, Owner.ClientRect.Bottom); {!!.02}
|
||||||
Y := 0;
|
Y := 0;
|
||||||
@ -16869,8 +16869,6 @@ end;
|
|||||||
|
|
||||||
procedure TIpHtmlPropA.SetKnownSizeOfSpace(const Size: TSize);
|
procedure TIpHtmlPropA.SetKnownSizeOfSpace(const Size: TSize);
|
||||||
begin
|
begin
|
||||||
if Size.cx = 0 then
|
|
||||||
raise EIpHtmlException.Create(SHtmlInternal); {!!.02}
|
|
||||||
FKnownSizeOfSpace := Size;
|
FKnownSizeOfSpace := Size;
|
||||||
FSizeOfSpaceKnown := True;
|
FSizeOfSpaceKnown := True;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user