]> 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, 7 Dec 2021 16:04:47 +0000 (17:04 +0100)
commit6bc50fea3a071ea3560fdacf4f2bb2d20e68e9e2
tree17f611a5ffab68fd761077eb348c0e880341e946
parentd694701315c297d13bde6ff80897aa016767f1ea
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