From 904fde99e2c6f7ba692533932b9125af9be0b792 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 13 Aug 2006 15:29:59 +0000 Subject: [PATCH] * 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 --- src/dociterator.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dociterator.C b/src/dociterator.C index 2e314e012f..25b9a282e6 100644 --- a/src/dociterator.C +++ b/src/dociterator.C @@ -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(); } -- 2.39.2