Make sure the cursor is in texted

This commit is contained in:
Enrico Forestieri 2016-01-28 14:13:17 +01:00
parent 6169e26ee6
commit 9edbeef7b7

View File

@ -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,