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:
maxim 2015-07-09 22:27:47 +00:00
parent 36080c86e4
commit 1a288fb26b
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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