X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFont.cpp;h=3ba04eba4756f9a6f2fcdccce2cf766433181db2;hb=bfe98181169d9e697e515da974d9b6a15a06c940;hp=26218eeeac280dde50a82bba5400b1f2f8cfd30e;hpb=4487af367ce3ccaa64a1192fac34150830fd246a;p=lyx.git diff --git a/src/Font.cpp b/src/Font.cpp index 26218eeeac..3ba04eba47 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -631,7 +631,7 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams, bool const using_begin_end = runparams.use_polyglossia || !lyxrc.language_command_end.empty(); - if (using_begin_end) + if (using_begin_end && !languageStackEmpty()) popLanguageName(); }