From fe25e93e9267d5e92cb77fa0edabda2e1f3b8036 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 1 Nov 2008 14:45:39 +0000 Subject: [PATCH] Whoops. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27222 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index cacd6b2046..66ac2a08c1 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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); -- 2.39.2