mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 02:40:36 +01:00
TAChart: Support TUserDefinedChartSource.YCount
git-svn-id: trunk@27138 -
This commit is contained in:
parent
61cf75f456
commit
277dda4e82
@ -245,6 +245,7 @@ type
|
||||
protected
|
||||
function GetCount: Integer; override;
|
||||
function GetItem(AIndex: Integer): PChartDataItem; override;
|
||||
procedure SetYCount(AValue: Cardinal); override;
|
||||
public
|
||||
function IsSorted: Boolean; override;
|
||||
procedure Reset; inline;
|
||||
@ -1217,5 +1218,13 @@ begin
|
||||
Reset;
|
||||
end;
|
||||
|
||||
procedure TUserDefinedChartSource.SetYCount(AValue: Cardinal);
|
||||
begin
|
||||
if FYCount = AValue then exit;
|
||||
FYCount := AValue;
|
||||
SetLength(FItem.YList, Max(YCount - 1, 0));
|
||||
Reset;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user