From: Richard Heck Date: Sat, 1 Nov 2008 14:45:39 +0000 (+0000) Subject: Whoops. X-Git-Tag: 1.6.10~2754 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fe25e93e9267d5e92cb77fa0edabda2e1f3b8036;p=features.git Whoops. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27222 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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);