mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 17:11:59 +02: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 }
|
||||
|
||||
procedure TChartTool.Activate;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
i := FChart.ActiveToolIndex;
|
||||
if (i <> Index) and InRange(i, 0, Toolset.Tools.Count) then
|
||||
Toolset[i].Deactivate;
|
||||
inherited;
|
||||
SetCursor;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user