Am 06.09.2010 17:14, schrieb Jean-Marc LASGOUTTES:

I do need it because my patch currently only works for real units.
Length::inPixels calculates the length for non-real units via the
textwidth. offset and height can have all kind of units, e.g. a height
of 1\textheight is sensible and inPixels calculates this length also
via textwidth.

You could try to add (untested):
        pi_.base.textwidth = text_metrics_.width();
in RowPainter::paintInset().

Thanks this works so far, but text_metrics_.width() is always bigger than mi.base.textwidth (on my PC it is 1.08 times bigger).

I nevertheless committed the patch hoping that this issues can be solved soon. Currently the drawn line looks well on the screen except when using very wide lines within text lines, then the drawn line is a bit shorter than the inset.

--
Btw. I tried in InsetLine::draw to access dim.wid but this gives me alwas zero as result. This is strange because in InsetLine::metrics dim.wid is correctly calculated. I have no clue why dim.wid is 0 later on.

Many thanks for your help and regards
Uwe

Reply via email to