mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 21:37:18 +01:00
TAChart: Make sure the previous tool is deactivated before activating a new one
git-svn-id: trunk@38861 -
This commit is contained in:
parent
8b7dff7f43
commit
e6a2713fce
@ -606,7 +606,12 @@ end;
|
|||||||
{ TChartTool }
|
{ TChartTool }
|
||||||
|
|
||||||
procedure TChartTool.Activate;
|
procedure TChartTool.Activate;
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
i := FChart.ActiveToolIndex;
|
||||||
|
if (i <> Index) and InRange(i, 0, Toolset.Tools.Count) then
|
||||||
|
Toolset[i].Deactivate;
|
||||||
inherited;
|
inherited;
|
||||||
SetCursor;
|
SetCursor;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user