mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:20:26 +02:00
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:
parent
32a7354677
commit
62462e4388
@ -759,6 +759,7 @@ begin
|
|||||||
i := FChart.ActiveToolIndex;
|
i := FChart.ActiveToolIndex;
|
||||||
if (i <> Index) and InRange(i, 0, Toolset.Tools.Count) then
|
if (i <> Index) and InRange(i, 0, Toolset.Tools.Count) then
|
||||||
Toolset[i].Deactivate;
|
Toolset[i].Deactivate;
|
||||||
|
FCurrentDrawer := nil;
|
||||||
inherited;
|
inherited;
|
||||||
SetCursor;
|
SetCursor;
|
||||||
end;
|
end;
|
||||||
@ -2225,6 +2226,7 @@ end;
|
|||||||
|
|
||||||
procedure TDataPointCrosshairTool.MouseDown(APoint: TPoint);
|
procedure TDataPointCrosshairTool.MouseDown(APoint: TPoint);
|
||||||
begin
|
begin
|
||||||
|
FCurrentDrawer := nil;
|
||||||
MouseMove(APoint);
|
MouseMove(APoint);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user