commit 45e0ce2372467516355d81bbba4a5852d9569f98
Author: Enrico Forestieri <[email protected]>
Date: Sun Mar 31 15:14:28 2019 +0200
Fix bug #11528
The code was not doing what said in the description.
---
src/output_latex.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 8ccb9f5..3489a11 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())