mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 04:19:09 +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;
|
r: TRect;
|
||||||
begin
|
begin
|
||||||
// Draw the background and the border.
|
// Draw the background and the border.
|
||||||
ADrawer.Font := Font;
|
|
||||||
ADrawer.Brush := BackgroundBrush;
|
ADrawer.Brush := BackgroundBrush;
|
||||||
ADrawer.Pen := Frame;
|
if Frame.Visible then
|
||||||
|
ADrawer.Pen := Frame
|
||||||
|
else
|
||||||
|
ADrawer.SetPenParams(psClear, clTAColor);
|
||||||
ADrawer.Rectangle(ABounds);
|
ADrawer.Rectangle(ABounds);
|
||||||
if AItems.Count = 0 then exit;
|
if AItems.Count = 0 then exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user