]> git.lyx.org Git - features.git/commit
Workaround for Qt 4
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 Aug 2021 13:48:44 +0000 (15:48 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Nov 2021 15:31:30 +0000 (16:31 +0100)
commit099cc953a2025bb2323abe365b8ffa08b2a59dd7
treef2babbbb2eaee9bebf0342d56d5db7dbe3cc0383
parent0961eb45355e2efd9f2c6597bab09903334c6b9a
Workaround for Qt 4

At least with Qt 4.8.7 on Ubuntu 16.04, QTextLine::lineWidth() can
return a bogus value, at least with Courier font. One hypothesis is
that the invisible characters that we use in breakAt_helper are given
a non-null width.

Work around it, although the exact bug has not been pinpointed.
src/frontends/qt/GuiFontMetrics.cpp