mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 16:56:03 +02:00
TAChart: Fix TLineSeries segment tracer crashing when only 1 y value exists.
git-svn-id: trunk@63050 -
This commit is contained in:
parent
f86c4782e6
commit
bb4e2d9fb8
@ -812,6 +812,8 @@ begin
|
||||
PrepareGraphPoints(ext, true);
|
||||
dmin := AResults.FDist;
|
||||
for levelIndex := 0 to Source.YCount-1 do begin
|
||||
if levelIndex > 0 then
|
||||
UpdateGraphPoints(levelIndex, FStacked);
|
||||
ip1 := ParentChart.GraphToImage(FGraphPoints[0]);
|
||||
for pointIndex := 1 to FUpBound - FLoBound do begin
|
||||
ip2 := ParentChart.GraphToImage(FGraphPoints[pointIndex]);
|
||||
@ -827,7 +829,6 @@ begin
|
||||
end;
|
||||
if not ((nptYList in AParams.FTargets) and (nptYList in ToolTargets)) then
|
||||
break;
|
||||
UpdateGraphPoints(levelIndex, FStacked);
|
||||
end;
|
||||
|
||||
if dmin < AResults.FDist then
|
||||
|
Loading…
Reference in New Issue
Block a user