From: Abdelrazak Younes Date: Thu, 11 Jan 2007 18:20:20 +0000 (+0000) Subject: revert mistake. X-Git-Tag: 1.6.10~11223 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c7aac5e1c697d8fd681adbbfdac2d3c8707e8177;p=lyx.git revert mistake. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16651 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/dociterator.C b/src/dociterator.C index 5f8ace8f65..7221d1438c 100644 --- a/src/dociterator.C +++ b/src/dociterator.C @@ -297,9 +297,8 @@ void DocIterator::forwardPos(bool ignorecollapsed) if (inMathed()) { n = (tip.cell().begin() + tip.pos())->nucleus(); } else { - // InsetList::get() will return a null pointer if there's - // no inset at this position. - n = paragraph().getInset(tip.pos()); + if (paragraph().isInset(tip.pos())) + n = paragraph().getInset(tip.pos()); } }