TAChart: Fix TBoxAndWhiskerSeries crashing when MinYValue or MaxYValue is queried and the series is empty.

(cherry picked from commit fcb70e903a)
This commit is contained in:
wp_xyz 2022-02-03 00:33:51 +01:00 committed by Maxim Ganetsky
parent 04abb621c5
commit 587c6d56c5

View File

@ -1066,6 +1066,9 @@ var
begin
Result := Source.ExtentList;
if Source.Count = 0 then
exit;
// Show first and last boxes fully.
j := -1;
x := NaN;