mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:29:15 +02:00
* Patch from Martin Schreiber to fix inline component streaming
git-svn-id: trunk@10601 -
This commit is contained in:
parent
cd28ce9dfc
commit
51f5fd5eb7
@ -595,10 +595,13 @@ var Dummy: Integer;
|
|||||||
begin
|
begin
|
||||||
Dummy:=0;
|
Dummy:=0;
|
||||||
Flags := [];
|
Flags := [];
|
||||||
If Assigned(FAncestor) then
|
If (Assigned(FAncestor)) and //has ancestor
|
||||||
Flags:=[ffInherited];
|
(not (csInline in Instance.ComponentState) or // no inline component
|
||||||
if csInline in Instance.ComponentState then
|
// .. or the inline component is inherited
|
||||||
Flags:=Flags+[ffInline];
|
(csAncestor in Instance.Componentstate) and (FAncestors <> nil)) then
|
||||||
|
Flags:=[ffInherited]
|
||||||
|
else If csInline in Instance.ComponentState then
|
||||||
|
Flags:=[ffInline];
|
||||||
FDriver.BeginComponent(Instance,Flags, Dummy);
|
FDriver.BeginComponent(Instance,Flags, Dummy);
|
||||||
WriteProperties(Instance);
|
WriteProperties(Instance);
|
||||||
WriteListEnd;
|
WriteListEnd;
|
||||||
|
Loading…
Reference in New Issue
Block a user