TAChart: Make sure that chart tools always work with valid image-graph scaling. Issue #35337, patch by Marcin Wiazowski.

git-svn-id: trunk@60894 -
This commit is contained in:
wp 2019-04-07 22:02:22 +00:00
parent 18edc84831
commit 6d39a8ac82

View File

@ -1038,7 +1038,7 @@ var
var
i, ai: Integer;
begin
if Tools.Count = 0 then exit(false);
if (Tools.Count = 0) or (not AChart.ScalingValid) then exit(false);
SetLength(candidates, Tools.Count);
candidateCount := 0;