mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 10:47:57 +00:00
Remove non-required ternary conditional.
In a branch only entered when not using Xe- or LuaTeX, we don't need to care about polyglossia.
This commit is contained in:
parent
4da19ef833
commit
d1b89c59d4
@ -1034,12 +1034,7 @@ void TeXOnePar(Buffer const & buf,
|
|||||||
if (runparams.encoding->package() == Encoding::CJK
|
if (runparams.encoding->package() == Encoding::CJK
|
||||||
&& par_lang != openLanguageName(state)
|
&& par_lang != openLanguageName(state)
|
||||||
&& !par_lang.empty()) {
|
&& !par_lang.empty()) {
|
||||||
string bc = use_polyglossia ?
|
os << subst(lang_begin_command, "$$lang", par_lang)
|
||||||
getPolyglossiaBegin(lang_begin_command, par_lang,
|
|
||||||
par_language->polyglossiaOpts(),
|
|
||||||
localswitch)
|
|
||||||
: subst(lang_begin_command, "$$lang", par_lang);
|
|
||||||
os << bc
|
|
||||||
<< lang_command_termination;
|
<< lang_command_termination;
|
||||||
if (using_begin_end)
|
if (using_begin_end)
|
||||||
pushLanguageName(par_lang, localswitch);
|
pushLanguageName(par_lang, localswitch);
|
||||||
|
Loading…
Reference in New Issue
Block a user