Martin Vermeer wrote:
Martin> I would say there are two different real value pairs, as there
Martin> are two insets within each other. The collapsable inset uses
Martin> its own draw method, and the textinset inside it, its own.
Martin> The fact that InsetCollapsable derives from InsetText is a red
Martin> herring in this connection as far as I can see.
But there is only one inset address for the collapsable inset and the
text inset, right?
Hmmm. This
43 InsetCollapsable::InsetCollapsable
44 (BufferParams const & bp, CollapseStatus status)
45 : InsetText(bp), label("Label"), status_(status),
openinlined_(false)
46 {
suggests that a new textinset is being created at construction of the
collapsable.
?
But they'll have the same address because InsetCollapsable derives from
InsetText.
The InsetCollapsable constructor is passing 'bp' down to its parent,
InsetText, so that InsetText can be initialised correctly.
Angus