From a85bd343480007cf9d8023bd68a79e97a9233d58 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 6 Aug 2020 19:10:23 +0200 Subject: [PATCH] Correctly compute metrics for single-char non-math fonts No status entry needed, as this amends 79998fdc. --- src/frontends/qt4/GuiFontMetrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5