On Wed, 2005-06-01 at 15:44, Jean-Marc Lasgouttes wrote: > >>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > Jean-Marc> The following (trivial) patch fixes bug 1890. Although it > Jean-Marc> is a satisfactory fix (insert the optarg inset as open > Jean-Marc> instead of collapsed, like for all other collapsable > Jean-Marc> insets), it hides a more annoying bug: when the collapsable > Jean-Marc> inset is inserted as collapsed, the xo() and yo() values > Jean-Marc> are not set correctly by the metrics (?) phase and trigger > Jean-Marc> an assertion. > > A related question: seeing that InsetCollapsable derives from > InsetText and that both draw method call Inset::setPosCache, what is > the _real_ value for xo and yo? > > JMarc
I would say there are two different real value pairs, as there are two insets within each other. The collapsable inset uses its own draw method, and the textinset inside it, its own. The fact that InsetCollapsable derives from InsetText is a red herring in this connection as far as I can see. - Martin
signature.asc
Description: This is a digitally signed message part