From: Enrico Forestieri Date: Sun, 31 Mar 2019 13:14:28 +0000 (+0200) Subject: Fix bug #11528 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aecc6f2ae3549772a742095312b0745f38e9b019;p=features.git Fix bug #11528 The code was not doing what said in the description. --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 8ccb9f5eb6..3489a11bb6 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1393,7 +1393,7 @@ void TeXOnePar(Buffer const & buf, && nextpar->getAlign() == par.getAlign()) || (!next_layout.isEnvironment() && nextpar->getDepth() > par.getDepth() - && nextpar->getAlign() == par.getAlign()) + && nextpar->getAlign() == next_layout.align) || (!style.isEnvironment() && next_layout.latextype == LATEX_ENVIRONMENT && nextpar->getDepth() < par.getDepth())