commit f71f71d01336d02aeefe9dbfbfa8d681959d6ac9
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Feb 7 16:21:20 2022 +0100
Amend 0789f2f2ae43
Use getFont() which considers fonts_default_family adjustments
---
src/Paragraph.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index f178dd5..48b8519 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -2539,9 +2539,10 @@ void Paragraph::latex(BufferParams const & bparams,
pos_type body_pos = beginOfBody();
unsigned int column = 0;
- // If we are inside an non inheritFont() inset, the outerfont is the
default font
+ // If we are inside an non inheritFont() inset,
+ // the outerfont is the buffer's main font
Font const real_outerfont =
- inInset().inheritFont() ? outerfont :
Font(bparams.documentClass().defaultfont());
+ inInset().inheritFont() ? outerfont : Font(bparams.getFont());
if (body_pos > 0) {
// the optional argument is kept in curly brackets in
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs