optimization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16650 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-11 18:05:09 +00:00
parent 8121036b50
commit d4c037a427

View File

@ -297,8 +297,9 @@ void DocIterator::forwardPos(bool ignorecollapsed)
if (inMathed()) {
n = (tip.cell().begin() + tip.pos())->nucleus();
} else {
if (paragraph().isInset(tip.pos()))
n = paragraph().getInset(tip.pos());
// InsetList::get() will return a null pointer if there's
// no inset at this position.
n = paragraph().getInset(tip.pos());
}
}