a microptimisation and a FIXME.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36894 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2010-12-15 21:11:12 +00:00
parent fbcbeb5130
commit 811335b50c

View File

@ -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