From 45e0ce2372467516355d81bbba4a5852d9569f98 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 31 Mar 2019 15:14:28 +0200 Subject: [PATCH] Fix bug #11528 The code was not doing what said in the description. --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.39.5