\foreignlanguage does not play with \cprotect.

This commit is contained in:
Juergen Spitzmueller 2020-08-14 09:00:48 +02:00
parent c9bf179016
commit 8bc76ad9bb

View File

@ -310,10 +310,6 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams,
string const tmp =
subst(lyxrc.language_command_local,
"$$lang", language()->babel());
if (needs_cprotection && !prefixIs(tmp, "\\begin{")) {
os << "\\cprotect";
count += 9;
}
os << from_ascii(tmp);
count += tmp.length();
if (!lyxrc.language_command_end.empty())