TAChart: Fix SIGFPE when trying to draw minor axis marks below zero on logarithmic axis

git-svn-id: trunk@32700 -
This commit is contained in:
ask 2011-10-05 10:05:02 +00:00
parent 9c33a8ec42
commit 809dcf262d

View File

@ -137,6 +137,7 @@ procedure ExpandRange(var ALo, AHi: Double; ACoeff: Double);
var
d: Double;
begin
if IsInfinite(ALo) or IsInfinite(AHi) then exit;
d := AHi - ALo;
ALo -= d * ACoeff;
AHi += d * ACoeff;