Shut up compiler warning

This commit is contained in:
Enrico Forestieri 2016-09-27 21:32:40 +02:00
parent 08f5fb1b2d
commit f476d9c85a

View File

@ -982,8 +982,8 @@ void TeXOnePar(Buffer const & buf,
switch (style.latextype) {
case LATEX_ITEM_ENVIRONMENT:
case LATEX_LIST_ENVIRONMENT:
if (nextpar && par_lang != nextpar_lang
&& nextpar->getDepth() == par.getDepth()
if ((nextpar && par_lang != nextpar_lang
&& nextpar->getDepth() == par.getDepth())
|| (atSameLastLangSwitchDepth(state) && nextpar
&& nextpar->getDepth() < par.getDepth()))
close_lang_switch = use_polyglossia;