commit a85bd343480007cf9d8023bd68a79e97a9233d58
Author: Enrico Forestieri <[email protected]>
Date: Thu Aug 6 19:10:23 2020 +0200
Correctly compute metrics for single-char non-math fonts
No status entry needed, as this amends 79998fdc.
---
src/frontends/qt4/GuiFontMetrics.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt4/GuiFontMetrics.cpp
b/src/frontends/qt4/GuiFontMetrics.cpp
index 02c5054..9ad6c17 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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs