[LyX/master] Revert "Fix a lang edgecase"
Juergen Spitzmueller
spitz at lyx.org
Sat Aug 15 13:07:18 UTC 2020
commit fb2077df118bbb0ff32f81d80150dd068efb2f3a
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sat Aug 15 15:21:19 2020 +0200
Revert "Fix a lang edgecase"
This reverts commit dc4b11b0e92e364eedd91c081d9999f0959839a8.
---
src/Paragraph.cpp | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 54d266e..e81eb2f 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -1058,15 +1058,13 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
Font const copy_font(running_font);
basefont = owner_->getLayoutFont(bparams, outerfont);
running_font = basefont;
- if (!closeLanguage && !lang_switched_at_inset)
+ if (!closeLanguage)
running_font.setLanguage(copy_font.language());
// For these, we use switches, so they should be taken as
// base inside the inset.
basefont.fontInfo().setSize(copy_font.fontInfo().size());
basefont.fontInfo().setFamily(copy_font.fontInfo().family());
basefont.fontInfo().setSeries(copy_font.fontInfo().series());
- if (!closeLanguage && lang_switched_at_inset)
- basefont.setLanguage(copy_font.language());
// Now re-do font changes in a way needed here
// (using switches with multi-par insets)
InsetText const * textinset = inset->asInsetText();
@@ -1076,7 +1074,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
: false;
unsigned int count2 = basefont.latexWriteStartChanges(os, bparams,
runparams, running_font,
- running_font, true,
+ basefont, true,
cprotect);
column += count2;
if (count2 == 0 && (lang_closed || lang_switched_at_inset))
@@ -2817,10 +2815,6 @@ void Paragraph::latex(BufferParams const & bparams,
basefont.fontInfo().setSize(save_basefont.fontInfo().size());
basefont.fontInfo().setFamily(save_basefont.fontInfo().family());
basefont.fontInfo().setSeries(save_basefont.fontInfo().series());
- if (!closeLanguage && lang_switched_at_inset) {
- basefont.setLanguage(save_basefont.language());
- running_font.setLanguage(save_runningfont.language());
- }
}
if (incremented)
--parInline;
More information about the lyx-cvs
mailing list