mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 17:19:32 +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);
|
||||
begin
|
||||
right:=left+avalue;
|
||||
bottom:=top+avalue;
|
||||
end;
|
||||
|
||||
procedure TRect.SetLocation(X, Y: Longint);
|
||||
@ -387,7 +387,7 @@ end;
|
||||
|
||||
procedure TRect.setWidth(AValue: Longint);
|
||||
begin
|
||||
bottom:=top+avalue;
|
||||
right:=left+avalue;
|
||||
end;
|
||||
|
||||
function TRect.SplitRect(SplitType: TSplitRectType; Percent: Double): TRect;
|
||||
|
Loading…
Reference in New Issue
Block a user