TAChart: Make sure the previous tool is deactivated before activating a new one

git-svn-id: trunk@38861 -
This commit is contained in:
ask 2012-09-27 14:27:42 +00:00
parent 8b7dff7f43
commit e6a2713fce

View File

@ -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;