]> git.lyx.org Git - lyx.git/commitdiff
* dociterator.C (forwardPosNoDescend): when at the end of the
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 13 Aug 2006 15:29:59 +0000 (15:29 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 13 Aug 2006 15:29:59 +0000 (15:29 +0000)
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

index 2e314e012f60708c06b95c607dcea98575a870a8..25b9a282e6969e44ef1791dbd130e6c89b25c5af 100644 (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();
 }