From: Günter Milde Date: Fri, 24 May 2019 20:48:06 +0000 (+0200) Subject: Remove non-required ternary conditional. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=695e917d21f4d54ea50db54b159ffa135f45f9fa;p=features.git Remove non-required ternary conditional. In a branch only entered when not using Xe- or LuaTeX, we don't need to care about polyglossia. --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 07f9246269..fa64895ef3 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1034,12 +1034,7 @@ void TeXOnePar(Buffer const & buf, if (runparams.encoding->package() == Encoding::CJK && par_lang != openLanguageName(state) && !par_lang.empty()) { - string bc = use_polyglossia ? - getPolyglossiaBegin(lang_begin_command, par_lang, - par_language->polyglossiaOpts(), - localswitch) - : subst(lang_begin_command, "$$lang", par_lang); - os << bc + os << subst(lang_begin_command, "$$lang", par_lang) << lang_command_termination; if (using_begin_end) pushLanguageName(par_lang, localswitch);