mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 13:28:04 +02:00
Merged revision(s) 57272 #0a200582f4 from trunk:
TAChart: Fix DatapointCrosshairTool ignoring its CrosshairPen.Visible setting. ........ git-svn-id: branches/fixes_1_8@57297 -
This commit is contained in:
parent
aa24def062
commit
0c9071a3b0
@ -1969,8 +1969,11 @@ end;
|
||||
procedure TDataPointCrosshairTool.DoDraw;
|
||||
var
|
||||
p: TPoint;
|
||||
ps: TFPPenStyle;
|
||||
begin
|
||||
FChart.Drawer.Pen := CrosshairPen;
|
||||
if not CrosshairPen.Visible then
|
||||
ps := CrosshairPen.Style;
|
||||
PrepareDrawingModePen(FChart.Drawer, CrosshairPen);
|
||||
p := FChart.GraphToImage(Position);
|
||||
if Shape in [ccsVertical, ccsCross] then
|
||||
if Size < 0 then
|
||||
@ -1982,6 +1985,8 @@ begin
|
||||
FChart.DrawLineHoriz(FChart.Drawer, p.Y)
|
||||
else
|
||||
FChart.Drawer.Line(p - Point(Size, 0), p + Point(Size, 0));
|
||||
if not CrosshairPen.Visible then
|
||||
FChart.Drawer.SetPenParams(ps, CrosshairPen.Color);
|
||||
inherited;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user