[LyX/master] Use nomath font also if other font package is selected (#11733)

Juergen Spitzmueller spitz at lyx.org
Fri Jan 8 10:18:06 UTC 2021


commit 79ef5694d132706429abdd5f69513d2edc44b924
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Jan 8 11:17:31 2021 +0100

    Use nomath font also if other font package is selected (#11733)
---
 src/BufferParams.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index beb6eb2..bc83548 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -3452,7 +3452,7 @@ string const BufferParams::loadFonts(LaTeXFeatures & features) const
 	bool const ot1 = (main_font_encoding() == "default" || main_font_encoding() == "OT1");
 	bool const dryrun = features.runparams().dryrun;
 	bool const complete = (fontsSans() == "default" && fontsTypewriter() == "default");
-	bool const nomath = (fontsMath() == "default");
+	bool const nomath = (fontsMath() != "auto");
 
 	// ROMAN FONTS
 	os << theLaTeXFonts().getLaTeXFont(from_ascii(fontsRoman())).getLaTeXCode(


More information about the lyx-cvs mailing list