mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 17:00:40 +02:00
* Fixed TRect setwith and setheight (from Ondrej Pokorny)
git-svn-id: trunk@33030 -
This commit is contained in:
parent
9c3cab8224
commit
fe1e18eb8d
@ -366,7 +366,7 @@ end;
|
|||||||
|
|
||||||
procedure TRect.setHeight(AValue: Longint);
|
procedure TRect.setHeight(AValue: Longint);
|
||||||
begin
|
begin
|
||||||
right:=left+avalue;
|
bottom:=top+avalue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRect.SetLocation(X, Y: Longint);
|
procedure TRect.SetLocation(X, Y: Longint);
|
||||||
@ -387,7 +387,7 @@ end;
|
|||||||
|
|
||||||
procedure TRect.setWidth(AValue: Longint);
|
procedure TRect.setWidth(AValue: Longint);
|
||||||
begin
|
begin
|
||||||
bottom:=top+avalue;
|
right:=left+avalue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRect.SplitRect(SplitType: TSplitRectType; Percent: Double): TRect;
|
function TRect.SplitRect(SplitType: TSplitRectType; Percent: Double): TRect;
|
||||||
|
Loading…
Reference in New Issue
Block a user