]> git.lyx.org Git - features.git/commitdiff
Fix bug #11528
authorEnrico Forestieri <forenr@lyx.org>
Sun, 31 Mar 2019 13:14:28 +0000 (15:14 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:23 +0000 (15:48 +0200)
The code was not doing what said in the description.

src/output_latex.cpp

index 8ccb9f5eb6e66beeeaed41a3dc19384a6ac1d8e0..3489a11bb69221570c6542fa1631014c68a5702c 100644 (file)
@@ -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())