TAChart: Fix TFuncSeries crashing if x-Extent is set at design-time (bug added by #56335)

git-svn-id: trunk@56495 -
This commit is contained in:
wp 2017-11-25 22:21:16 +00:00
parent fde0802695
commit 0ced9ed347

View File

@ -569,7 +569,9 @@ var
ymin, ymax: Double;
begin
inherited GetBounds(ABounds);
if not Extent.UseXMin or not Extent.UseXMax or not ExtentAutoY then
if not Extent.UseXMin or not Extent.UseXMax or not ExtentAutoY or
(csDesigning in ComponentState)
then
exit;
ymin := SafeInfinity;
ymax := NegInfinity;