TAChart: Fix initialization error in TChartLiveView when ExtentY is lveAuto.

git-svn-id: trunk@65425 -
This commit is contained in:
wp 2021-07-09 09:06:43 +00:00
parent 8ea00ae159
commit 2bf2902c91
2 changed files with 3 additions and 0 deletions

View File

@ -198,6 +198,7 @@
</CodeGeneration> </CodeGeneration>
<Linking> <Linking>
<Debugging> <Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<TrashVariables Value="True"/> <TrashVariables Value="True"/>
</Debugging> </Debugging>
<Options> <Options>

View File

@ -124,6 +124,8 @@ begin
begin begin
ygmin := Infinity; ygmin := Infinity;
ygmax := -Infinity; ygmax := -Infinity;
ymin := Infinity;
ymax := -Infinity;
for i := 0 to FChart.SeriesCount-1 do for i := 0 to FChart.SeriesCount-1 do
if FChart.Series[i] is TChartSeries then if FChart.Series[i] is TChartSeries then
begin begin