DEPM: do not fix cursor pit if it was in a different cell

This bug has been here forever.

Fixes bug #12117.
This commit is contained in:
Jean-Marc Lasgouttes 2021-02-10 10:20:34 +01:00
parent d2f23c303c
commit 939d25561d

View File

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