From: Juergen Spitzmueller Date: Sat, 15 Aug 2020 14:46:18 +0000 (+0200) Subject: Only exclude ERT from language switch doing X-Git-Tag: lyx-2.4.0dev-acb2ca7b~376 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3c5c41ddc2d4a4f30d5ad27ea3dcd679b7a4db24;p=lyx.git Only exclude ERT from language switch doing --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 6696188140..7b46d1eca9 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2597,7 +2597,7 @@ void Paragraph::latex(BufferParams const & bparams, c == META_INSET && getInset(i) && getInset(i)->allowMultiPar() - && !getInset(i)->isPassThru(); + && getInset(i)->lyxCode() != ERT_CODE; // Do we need to close the previous font? if (open_font &&