فهرست منبع

* fix Types.UnionRect as proposed by Piotr Karasinski, resolves #20006

git-svn-id: trunk@18246 -
florian 14 سال پیش
والد
کامیت
3e4469937c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      rtl/objpas/types.pp

+ 1 - 1
rtl/objpas/types.pp

@@ -386,7 +386,7 @@ begin
   if R2.Bottom>R1.Bottom then
   if R2.Bottom>R1.Bottom then
     lRect.Bottom:=R2.Bottom;
     lRect.Bottom:=R2.Bottom;
 
 
-  if IsRectEmpty(Rect) then
+  if IsRectEmpty(lRect) then
   begin
   begin
     FillChar(Rect,SizeOf(Rect),0);
     FillChar(Rect,SizeOf(Rect),0);
     UnionRect:=false;
     UnionRect:=false;