LCL: TLRSObjectWriter.BeginComponent write block if childpos changed

git-svn-id: trunk@22488 -
This commit is contained in:
mattias 2009-11-08 11:54:33 +00:00
parent 4346679737
commit ab654bf730

View File

@ -4434,7 +4434,8 @@ begin
//DebugLn(['TLRSObjectWriter.BeginComponent ',FStackPointer]);
// an inherited child component can be omitted if empty
CanBeOmitted:=(not WriteEmptyInheritedChilds)
and (FStackPointer>0) and (ffInherited in Flags);
and (FStackPointer>0) and (ffInherited in Flags)
and (not (ffChildPos in Flags));
// a component has two lists: properties and childs
Push(Component.Name,Component,2,CanBeOmitted);