From f476d9c85ad63353b978481fde59659b870758fe Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 27 Sep 2016 21:32:40 +0200 Subject: [PATCH] Shut up compiler warning --- src/output_latex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2