From 939d25561d5345d367309b7994eaefa355072456 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 10 Feb 2021 10:20:34 +0100 Subject: [PATCH] DEPM: do not fix cursor pit if it was in a different cell This bug has been here forever. Fixes bug #12117. --- src/Text2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text2.cpp b/src/Text2.cpp index f77bfaa3de..4959a3fc81 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -916,6 +916,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur, if (cur.depth() >= old.depth()) { CursorSlice & curslice = cur[old.depth() - 1]; if (&curslice.inset() == &old.inset() + && curslice.idx() == old.idx() && curslice.pit() > old.pit()) { --curslice.pit(); // since a paragraph has been deleted, all the -- 2.39.5