mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:09:21 +02:00
TAChart: Do not draw legend frame with Visible = false
git-svn-id: trunk@31341 -
This commit is contained in:
parent
d2cf3ad43f
commit
0bbf6f4c42
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user