mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 22:38:03 +02:00
Merged revision(s) 49513 #374bd932f9 from trunk:
TAChart: Fix incorrect usage of infinity values, patch by Vít Ondruch (issue #0028386) ........ git-svn-id: branches/fixes_1_4@49516 -
This commit is contained in:
parent
36080c86e4
commit
1a288fb26b
@ -820,8 +820,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