lcl: don't deflate rectangle after Frame3d drawing in TPanel.Paint code since Frame3d performs that deflation itself (issue #0013776)

git-svn-id: trunk@20104 -
This commit is contained in:
paul 2009-05-21 12:41:19 +00:00
parent f8c5dc7b12
commit 89bfcf7006

View File

@ -95,17 +95,15 @@ var
begin
ARect := GetClientRect;
if BevelOuter <> bvNone then
begin
Canvas.Frame3d(ARect, BevelWidth, BevelOuter);
InflateRect(ARect, -1, -1);
end;
if BevelInner <> bvNone then
begin
if BorderWidth > 0 then InflateRect(ARect, -BorderWidth, -BorderWidth);
if BorderWidth > 0 then
InflateRect(ARect, -BorderWidth, -BorderWidth);
Canvas.Frame3d(ARect, BevelWidth, BevelInner);
InflateRect(ARect, -1, -1);
end;
if Caption <> '' then
begin
TS := Canvas.TextStyle;