]> git.lyx.org Git - lyx.git/commitdiff
revert mistake.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 11 Jan 2007 18:20:20 +0000 (18:20 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 11 Jan 2007 18:20:20 +0000 (18:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16651 a592a061-630c-0410-9148-cb99ea01b6c8

src/dociterator.C

index 5f8ace8f6594c35f4424e23dd6ee1997e62f665f..7221d1438cf51c0404f76b513d8ac19e8a8322e3 100644 (file)
@@ -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());
                }
        }