TAChart: Fix some ZoomDragTool and DataPointCrosshairTool painting on other chart if shared between two charts.

git-svn-id: trunk@64161 -
This commit is contained in:
wp 2020-11-30 11:29:26 +00:00
parent 32a7354677
commit 62462e4388

View File

@ -759,6 +759,7 @@ begin
i := FChart.ActiveToolIndex;
if (i <> Index) and InRange(i, 0, Toolset.Tools.Count) then
Toolset[i].Deactivate;
FCurrentDrawer := nil;
inherited;
SetCursor;
end;
@ -2225,6 +2226,7 @@ end;
procedure TDataPointCrosshairTool.MouseDown(APoint: TPoint);
begin
FCurrentDrawer := nil;
MouseMove(APoint);
end;