On Tue, 2006-06-20 at 15:00 +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Your question presupposes that these two mechanisms would have > Martin> anything in common. They have not. display() is a property of > Martin> the inset (or in math, a mode of the inset). Wide() is a > Martin> status element of text insets only that depends on its > Martin> position within he surrounding row and that of the cursor > Martin> relative to it. > > OK, let's ask differently: when is Wide() true? In a collapsable inset > which is alone on its line? Isn't it possible to have a live test > equivalent to Wide()? > > I tested the patch, and it seems to work very well. I am OK with > putting this in 1.4.
So done. Don't think it requires anything in status.14x.
Redefine the speed-up "Wide" patch to draw proper boxes
in available space instead of line pairs.
* rowpainter.C
(paintPar): change background rectangle
* insets/insettext.C
(InsetText::draw):
(InsetText::drawSelection): simplify rectangle drawing
* insets/insettext.h: dump Tall()
* insets/insetcollapsable.C
(InsetCollapsable::metrics): subtract button from available
space in case of inlined inset
- Martin
signature.asc
Description: This is a digitally signed message part
