TAChart: Fix RandomChartSource crashing if PointsNumber is 1.

git-svn-id: branches/fixes_1_8@56554 -
This commit is contained in:
mattias 2017-11-30 14:39:59 +00:00
parent 6a1353ee78
commit d4de41bf7e

View File

@ -803,7 +803,7 @@ begin
end;
while FCurIndex < AIndex do begin
FCurIndex += 1;
if XMax <= XMin then begin
if (XMax <= XMin) or (Count = 1) then begin
FCurItem.X := XMin;
for i := 0 to XCount - 2 do FCurItem.XList[i] := XMin;
end else begin