mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 13:49:16 +02:00
TAChart: Fix incorrect usage of infinity values, patch by Vít Ondruch (issue #0028386)
git-svn-id: trunk@49513 -
This commit is contained in:
parent
3768a9fd84
commit
374bd932f9
@ -822,8 +822,8 @@ begin
|
||||
FHelper.FZOffset.Y := Min(ZPosition, AMaxZPosition);
|
||||
FHelper.FZOffset.X := -FHelper.FZOffset.Y;
|
||||
FHelper.FAtDataOnly := AtDataOnly;
|
||||
FHelper.FMaxForMarks := -infinity;
|
||||
FHelper.FMinForMarks := infinity;
|
||||
FHelper.FMaxForMarks := NegInfinity;
|
||||
FHelper.FMinForMarks := SafeInfinity;
|
||||
end;
|
||||
|
||||
procedure TChartAxis.SetAlignment(AValue: TChartAxisAlignment);
|
||||
|
@ -995,7 +995,7 @@ var
|
||||
s: TBasicChartSeries;
|
||||
mn, mx: Double;
|
||||
begin
|
||||
Result.FStart := Infinity;
|
||||
Result.FStart := SafeInfinity;
|
||||
Result.FEnd := NegInfinity;
|
||||
for s in Series do
|
||||
if s.Active and s.GetAxisBounds(AAxis, mn, mx) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user