mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 21:19:24 +02:00
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:
parent
9c33a8ec42
commit
809dcf262d
@ -137,6 +137,7 @@ procedure ExpandRange(var ALo, AHi: Double; ACoeff: Double);
|
|||||||
var
|
var
|
||||||
d: Double;
|
d: Double;
|
||||||
begin
|
begin
|
||||||
|
if IsInfinite(ALo) or IsInfinite(AHi) then exit;
|
||||||
d := AHi - ALo;
|
d := AHi - ALo;
|
||||||
ALo -= d * ACoeff;
|
ALo -= d * ACoeff;
|
||||||
AHi += d * ACoeff;
|
AHi += d * ACoeff;
|
||||||
|
Loading…
Reference in New Issue
Block a user