]> git.lyx.org Git - features.git/commitdiff
Whoops.
authorRichard Heck <rgheck@comcast.net>
Sat, 1 Nov 2008 14:45:39 +0000 (14:45 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 1 Nov 2008 14:45:39 +0000 (14:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27222 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.cpp

index cacd6b2046fc48660f342f591c4ccaf17d3f8463..66ac2a08c1a03534fe30f86cedbf89cc25629f5a 100644 (file)
@@ -82,13 +82,12 @@ TeXDeeper(Buffer const & buf,
 
        ParagraphList const & paragraphs = text.paragraphs();
 
-       // FIXME This test should not be necessary.
-       // We should perhaps issue an error if it is.
-       Layout const & style = par->forcePlainLayout() ?
-               buf.params().documentClass().plainLayout() : par->layout();
-
        while (par != paragraphs.end() &&
-                    par->params().depth() == pit->params().depth()) {
+                                       par->params().depth() == pit->params().depth()) {
+               // FIXME This test should not be necessary.
+               // We should perhaps issue an error if it is.
+               Layout const & style = par->forcePlainLayout() ?
+                       buf.params().documentClass().plainLayout() : par->layout();
                if (style.isEnvironment()) {
                        par = TeXEnvironment(buf, text, par,
                                             os, texrow, runparams);