From: Stefan Schimanski Date: Sun, 27 May 2007 08:16:17 +0000 (+0000) Subject: * depending on "front" the last position is a valid one (Dov Feldstern's patch) X-Git-Tag: 1.6.10~9605 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=15055e721adb4d84bfd40f46884fae4bca187a15;p=features.git * depending on "front" the last position is a valid one (Dov Feldstern's patch) * fixes http://bugzilla.lyx.org/show_bug.cgi?id=3720 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18532 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text2.cpp b/src/Text2.cpp index 026600e79e..2815dce159 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -954,7 +954,9 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front) { if (cur.selection()) return false; - if (cur.pos() == cur.lastpos()) + if (front && cur.pos() == cur.lastpos()) + return false; + if (!front && cur.pos() == 0) return false; Inset * inset = front ? cur.nextInset() : cur.prevInset(); if (!isHighlyEditableInset(inset))