Correctly compute metrics for single-char non-math fonts

No status entry needed, as this amends 79998fdc.
This commit is contained in:
Enrico Forestieri 2020-08-06 19:10:23 +02:00
parent 0994a9612d
commit a85bd34348

View File

@ -218,7 +218,7 @@ int GuiFontMetrics::width(docstring const & s) const
int w = 0;
if (s.length() == 1
#if QT_VERSION >= 0x040800
|| font_.styleName() == "LyX"
&& font_.styleName() == "LyX"
#endif
) {
// keep value 0 for math chars with null width