[fpc-devel] csInlin how is it suppossed to work?
lazarus at mfriebe.de
Sun Aug 16 20:20:19 CEST 2009
Paul Ishenin wrote:
> Martin wrote:
>> http://bugs.freepascal.org/view.php?id=14364 saving frames with
>> anchorsides (or rather the inability of doing so)
> Either we do something wrong with csInline flag or it is a but in the FPC.
> Best regards,
> Paul Ishenin.
Yes it is strange.....
I am down to
if (FAncestor is TComponent) then
if csInline in TComponent(FAncestor).ComponentState then
FRootAncestor := TComponent(FAncestor);
A Frame has csInline => so Frame.Getchildren is called with
FRootAncestor (which is the frame itself?)
But ALL the children are added to the AnchestorList => is that supposed
Because then later:
procedure TWriter.WriteComponent(Component: TComponent);
will find a random children there and that seems wrong.
More information about the fpc-devel