From 811335b50cf441009bf838f2a0bcf758beb4a51e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 15 Dec 2010 21:11:12 +0000 Subject: [PATCH] a microptimisation and a FIXME. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36894 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 172e292161..6c40c38a8f 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -77,8 +77,9 @@ TeXDeeper(Buffer const & buf, ParagraphList const & paragraphs = text.paragraphs(); bool const force_plain_layout = text.inset().forcePlainLayout(); - while (par != paragraphs.end() && - par->params().depth() == pit->params().depth()) { + depth_type const max_depth = pit->params().depth(); + // FIXME: move that to a for loop! + while (par != paragraphs.end() && par->params().depth() == max_depth) { // FIXME This test should not be necessary. // We should perhaps issue an error if it is. Layout const & style = force_plain_layout