瀏覽代碼

* Fixed TRect setwith and setheight (from Ondrej Pokorny)

git-svn-id: trunk@33030 -
michael 9 年之前
父節點
當前提交
fe1e18eb8d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/inc/typshrd.inc

+ 2 - 2
rtl/inc/typshrd.inc

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