mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 05:19:31 +02:00
TAChart: Fix RandomChartSource crashing if PointsNumber is 1.
git-svn-id: branches/fixes_1_8@56554 -
This commit is contained in:
parent
6a1353ee78
commit
d4de41bf7e
@ -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