]> git.lyx.org Git - features.git/commitdiff
Correctly compute metrics for single-char non-math fonts
authorEnrico Forestieri <forenr@lyx.org>
Thu, 6 Aug 2020 17:10:23 +0000 (19:10 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 6 Aug 2020 17:10:23 +0000 (19:10 +0200)
No status entry needed, as this amends 79998fdc.

src/frontends/qt4/GuiFontMetrics.cpp

index 02c50540946de18f27895049265db3c1bd3bdcc0..9ad6c175b6586bc8cdd65cb2aba5ea8a1786497f 100644 (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