TAChart: Fix data-point cross-hair cursor, used by two charts, being drawn in the other chart.

This commit is contained in:
wp_xyz 2023-07-07 14:27:00 +02:00
parent 95d6c4d698
commit a1bf47ed7d

View File

@ -2277,7 +2277,6 @@ end;
procedure TDataPointCrosshairTool.MouseDown(APoint: TPoint); procedure TDataPointCrosshairTool.MouseDown(APoint: TPoint);
begin begin
FCurrentDrawer := nil;
MouseMove(APoint); MouseMove(APoint);
end; end;
@ -2288,7 +2287,9 @@ var
lastIndex: Integer; lastIndex: Integer;
xorMode: Boolean; xorMode: Boolean;
begin begin
FCurrentDrawer := nil;
id := GetCurrentDrawer; id := GetCurrentDrawer;
lastSeries := FSeries; lastSeries := FSeries;
lastIndex := FPointIndex; lastIndex := FPointIndex;
xorMode := EffectiveDrawingMode = tdmXOR; xorMode := EffectiveDrawingMode = tdmXOR;