From 15055e721adb4d84bfd40f46884fae4bca187a15 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sun, 27 May 2007 08:16:17 +0000 Subject: [PATCH] * 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 --- src/Text2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.2