lcl: don't check for TMenuItem.Owner during streaming to be able to write TMenuItem with children to custom streams by patch of Anton Kavalenka (issue #0018106)

git-svn-id: trunk@28560 -
This commit is contained in:
paul 2010-11-30 03:27:59 +00:00
parent 74e9ccac95
commit 70fdb2d0ee
2 changed files with 4 additions and 6 deletions

View File

@ -297,11 +297,10 @@ end;
------------------------------------------------------------------------------}
procedure TMenu.GetChildren(Proc: TGetChildProc; Root: TComponent);
var
i : integer;
i: integer;
begin
for i := 0 to FItems.Count - 1 do
if FItems[i].Owner = Root
then Proc(TComponent (FItems [i]));
for i := 0 to FItems.Count - 1 do
Proc(TComponent(FItems[i]));
end;
procedure TMenu.MenuChanged(Sender: TObject; Source: TMenuItem; Rebuild: Boolean);

View File

@ -322,8 +322,7 @@ begin
if not assigned (FItems) then exit;
for i := 0 to FItems.Count - 1 do
if TComponent (FItems[i]).Owner = Root then
Proc(TComponent(FItems[i]));
Proc(TComponent(FItems[i]));
end;
function TMenuItem.GetAction: TBasicAction;