From: Enrico Forestieri Date: Tue, 27 Sep 2016 19:32:40 +0000 (+0200) Subject: Shut up compiler warning X-Git-Tag: 2.3.0alpha1~944 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f476d9c85ad63353b978481fde59659b870758fe;p=features.git Shut up compiler warning --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index c656ecf18f..0765949596 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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;