mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 01:00:34 +01:00
TAChart: Do not draw pointers with Visible = false
git-svn-id: trunk@31431 -
This commit is contained in:
parent
ea79d0a8d1
commit
80486ae12e
@ -500,12 +500,12 @@ begin
|
||||
DrawLines;
|
||||
DrawLabels(ADrawer);
|
||||
|
||||
if FShowPoints then
|
||||
if ShowPoints and Pointer.Visible then
|
||||
for i := FLoBound to FUpBound do begin
|
||||
p := FGraphPoints[i - FLoBound];
|
||||
if not ParentChart.IsPointInViewPort(p) then continue;
|
||||
ai := ParentChart.GraphToImage(p);
|
||||
FPointer.Draw(ADrawer, ai, Source[i]^.Color);
|
||||
Pointer.Draw(ADrawer, ai, Source[i]^.Color);
|
||||
if Supports(ADrawer, IChartTCanvasDrawer, ic) and Assigned(FOnDrawPointer) then
|
||||
FOnDrawPointer(Self, ic.Canvas, i, ai);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user