]> git.lyx.org Git - features.git/commitdiff
Take out inheritFont() condition
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Aug 2020 09:18:49 +0000 (11:18 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Aug 2020 09:18:49 +0000 (11:18 +0200)
src/Paragraph.cpp

index 6c90297e07d4cd8d1400b13b0231528e94b93f58..dcba46a039bd327ce98815d021906f57b0b008c1 100644 (file)
@@ -1033,7 +1033,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
                close = true;
        }
 
-       if (open_font && (!inset->inheritFont() || fontswitch_inset)) {
+       if (open_font && fontswitch_inset) {
                bool lang_closed = false;
                // Close language if needed
                if (closeLanguage) {