From c7aac5e1c697d8fd681adbbfdac2d3c8707e8177 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 11 Jan 2007 18:20:20 +0000 Subject: [PATCH] revert mistake. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16651 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/dociterator.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()); } } -- 2.39.5