mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 13:59:34 +02:00
TAChart: Fix RandomChartSource crashing if PointsNumber is 1.
git-svn-id: trunk@56490 -
This commit is contained in:
parent
c4f8616371
commit
59e3f04835
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user