From 9edbeef7b7eeb21cadec451e71b1109cd4dfb219 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 28 Jan 2016 14:13:17 +0100 Subject: [PATCH] Make sure the cursor is in texted --- src/Cursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index bc1219733f..e9bdf895b7 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1947,7 +1947,7 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded) // Make sure that cur gets back whatever happened to dummy (Lgb) operator=(dummy); } - if (pos() && paragraph().isEnvSeparator(pos() - 1)) + if (inTexted() && pos() && paragraph().isEnvSeparator(pos() - 1)) posBackward(); } else { // if there is a selection, we stay out of any inset,