]> git.lyx.org Git - features.git/commitdiff
* depending on "front" the last position is a valid one (Dov Feldstern's patch)
authorStefan Schimanski <sts@lyx.org>
Sun, 27 May 2007 08:16:17 +0000 (08:16 +0000)
committerStefan Schimanski <sts@lyx.org>
Sun, 27 May 2007 08:16:17 +0000 (08:16 +0000)
* 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

index 026600e79e03aa91f584012a38688e51785cfedd..2815dce1592e65ccf440a7afb09bac5809a81964 100644 (file)
@@ -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))