* dociterator.C (forwardPosNoDescend): when at the end of the

inset, leave it, like forwardPos does (bug 2510).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14645 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-08-13 15:29:59 +00:00
parent c94fcdeeae
commit 904fde99e2

View File

@ -398,7 +398,11 @@ void DocIterator::forwardPosNoDescend()
}
//lyxerr << "... no next idx" << endl;
// otherwise we can't move on
// otherwise leave inset and jump over inset as a whole
pop_back();
// 'top' is invalid now...
if (!empty())
++top().pos();
}