mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 15:59:09 +02:00
TAChart: Ignore XList when sorting ListChartSource. Issue #35188.
git-svn-id: trunk@60918 -
This commit is contained in:
parent
7b666b270f
commit
b15c2b23fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user