mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 22:09:28 +02:00
Fixes crash in TUntabbedNotebook
git-svn-id: trunk@27094 -
This commit is contained in:
parent
bd13bc5897
commit
99e42b0a93
@ -330,6 +330,7 @@ type
|
||||
procedure PageListChange(Ptr: Pointer; AnAction: TListNotification);
|
||||
protected
|
||||
function GetObject(Index: Integer): TObject; override;
|
||||
function GetCount: Integer; override;
|
||||
public
|
||||
constructor Create(thePageList: TListWithEvent;
|
||||
theUNotebook: TUntabbedNotebook);
|
||||
|
@ -57,6 +57,14 @@ begin
|
||||
Result := TCustomPage(fPageList[Index]);}
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
TUNBPages GetCount
|
||||
------------------------------------------------------------------------------}
|
||||
function TUNBPages.GetCount: Integer;
|
||||
begin
|
||||
Result := fPageList.Count;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
TUNBPages Clear
|
||||
------------------------------------------------------------------------------}
|
||||
|
Loading…
Reference in New Issue
Block a user