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

This bug has been here forever.

Fixes bug #12117.

(cherry-picked from 939d25561d)
This commit is contained in:
Jean-Marc Lasgouttes 2021-02-11 16:58:28 +01:00
parent 7dc7315e5f
commit 2079dc1b16
2 changed files with 3 additions and 0 deletions

View File

@ -925,6 +925,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

View File

@ -78,6 +78,8 @@ What's new
- Disable direct insertion of multiple spaces in mathed text (bug 1311).
- Fix crash in tabular when an empty paragraph is removed
automatically (bug 12117).
* INTERNALS