* Fixed TRect setwith and setheight (from Ondrej Pokorny)

git-svn-id: trunk@33030 -
This commit is contained in:
michael 2016-01-29 20:50:21 +00:00
parent 9c3cab8224
commit fe1e18eb8d

View File

@ -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;