TAChart: Do not draw legend frame with Visible = false

git-svn-id: trunk@31341 -
This commit is contained in:
ask 2011-06-23 07:28:56 +00:00
parent d2cf3ad43f
commit 0bbf6f4c42

View File

@ -356,9 +356,11 @@ var
r: TRect;
begin
// Draw the background and the border.
ADrawer.Font := Font;
ADrawer.Brush := BackgroundBrush;
ADrawer.Pen := Frame;
if Frame.Visible then
ADrawer.Pen := Frame
else
ADrawer.SetPenParams(psClear, clTAColor);
ADrawer.Rectangle(ABounds);
if AItems.Count = 0 then exit;