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,6 +392,9 @@ void DocIterator::forwardPar()
pos_type const lastp = lastpos();
Paragraph const & par = paragraph();
pos_type & pos = top().pos();
if (par.insetlist.empty())
pos = lastp;
else
while (pos < lastp && !par.isInset(pos))
++pos;
}