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.
I looked at that, too, but could not find the reason. In theory setPoscache should be called before xo and yo are used, but this does not seem to be the case. > 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? My understanding is the following: the InsetText values + some offset are valid and used if the inset is open or inlined, and the InsetCollapsable values are used if it is closed. Georg