mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-29 04:38:38 +00:00
c874641e95
It was not a good idea to rely on QTextLine::naturalTextWidth() to compute a string width. The correct method is horizontalAdvance(). Also round the value to the nearest pixel, since this is what QFontMetrics::width() does. Fixes bug #10700 (and maybe others).