]> git.lyx.org Git - features.git/commitdiff
This should have gone in r30766.
authorEnrico Forestieri <forenr@lyx.org>
Sat, 25 Jul 2009 01:09:31 +0000 (01:09 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 25 Jul 2009 01:09:31 +0000 (01:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30768 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.cpp

index ff25c1579c336cee8148c2fccc274c57d659ce0c..606dec005e43d23c90175a491d7863355c7fa84b 100644 (file)
@@ -359,7 +359,8 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
                bool topped = outpit == paragraphs.begin()
                              && (outpit->hasSameLayout(*priorpit)
                                  || outpit->getDepth() > pit->getDepth()
-                                 || outpit->getAlign() != outpit->layout().align);
+                                 || outpit->getAlign() != outpit->layout().align
+                                 || outpit->layout().isEnvironment());
                Language const * const outenv_language = topped ?
                                        outer_language
                                        : outpit->getParLanguage(bparams);