TAChart: Ignore XList when sorting ListChartSource. Issue #35188.

git-svn-id: trunk@60918 -
This commit is contained in:
wp 2019-04-10 12:26:35 +00:00
parent 7b666b270f
commit b15c2b23fd

View File

@ -841,17 +841,10 @@ end;
function CompareDataItemX(AItem1, AItem2: Pointer): Integer;
var
i: Integer;
item1: PChartDataItem absolute AItem1;
item2: PChartDataItem absolute AItem2;
begin
Result := CompareFloat(item1^.X, item2^.X);
if Result = 0 then
for i := 0 to Min(High(item1^.XList), High(item2^.XList)) do begin
Result := CompareFloat(item1^.XList[i], item2^.XList[i]);
if Result <> 0 then
exit;
end;
end;
procedure TListChartSource.Sort;