From: Enrico Forestieri Date: Thu, 6 Aug 2020 17:10:23 +0000 (+0200) Subject: Correctly compute metrics for single-char non-math fonts X-Git-Tag: 2.3.6~61 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a85bd343480007cf9d8023bd68a79e97a9233d58;p=features.git Correctly compute metrics for single-char non-math fonts No status entry needed, as this amends 79998fdc. --- diff --git a/src/frontends/qt4/GuiFontMetrics.cpp b/src/frontends/qt4/GuiFontMetrics.cpp index 02c5054094..9ad6c175b6 100644 --- a/src/frontends/qt4/GuiFontMetrics.cpp +++ b/src/frontends/qt4/GuiFontMetrics.cpp @@ -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