mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 11:32:48 +02:00
TAChart: Fix TListSource.Copyfrom not copying additional x values.
git-svn-id: trunk@60457 -
This commit is contained in:
parent
0de0d18fd0
commit
a47b0300f7
@ -470,10 +470,12 @@ begin
|
||||
BeginUpdate;
|
||||
try
|
||||
Clear;
|
||||
XCount := ASource.XCount;
|
||||
YCount := ASource.YCount;
|
||||
for i := 0 to ASource.Count - 1 do
|
||||
with ASource[i]^ do begin
|
||||
AddAt(FData.Count, X, Y, Text, Color);
|
||||
SetXList(FData.Count - 1, XList);
|
||||
SetYList(FData.Count - 1, YList);
|
||||
end;
|
||||
if Sorted and not ASource.IsSorted then Sort;
|
||||
@ -487,7 +489,6 @@ begin
|
||||
inherited Create(AOwner);
|
||||
FData := TFPList.Create;
|
||||
FDataPoints := TListChartSourceStrings.Create(Self);
|
||||
FYCount := 1;
|
||||
ClearCaches;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user