optimization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16649 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-11 17:40:23 +00:00
parent 92a06e2719
commit 8121036b50

View File

@ -392,8 +392,11 @@ void DocIterator::forwardPar()
pos_type const lastp = lastpos(); pos_type const lastp = lastpos();
Paragraph const & par = paragraph(); Paragraph const & par = paragraph();
pos_type & pos = top().pos(); pos_type & pos = top().pos();
while (pos < lastp && !par.isInset(pos)) if (par.insetlist.empty())
++pos; pos = lastp;
else
while (pos < lastp && !par.isInset(pos))
++pos;
} }
forwardPos(); forwardPos();
} }