mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 19:49:38 +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
|
||||
d: Double;
|
||||
begin
|
||||
if IsInfinite(ALo) or IsInfinite(AHi) then exit;
|
||||
d := AHi - ALo;
|
||||
ALo -= d * ACoeff;
|
||||
AHi += d * ACoeff;
|
||||
|
Loading…
Reference in New Issue
Block a user