]> git.lyx.org Git - lyx.git/commitdiff
Only exclude ERT from language switch doing
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Aug 2020 14:46:18 +0000 (16:46 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Aug 2020 14:46:18 +0000 (16:46 +0200)
src/Paragraph.cpp

index 669618814028bd1b400d637fbb42e9bbc063598e..7b46d1eca91c6e1b5d6eb5230486a8b2d8413970 100644 (file)
@@ -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 &&