mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
7dc7315e5f
commit
2079dc1b16
@ -925,6 +925,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
|
|||||||
if (cur.depth() >= old.depth()) {
|
if (cur.depth() >= old.depth()) {
|
||||||
CursorSlice & curslice = cur[old.depth() - 1];
|
CursorSlice & curslice = cur[old.depth() - 1];
|
||||||
if (&curslice.inset() == &old.inset()
|
if (&curslice.inset() == &old.inset()
|
||||||
|
&& curslice.idx() == old.idx()
|
||||||
&& curslice.pit() > old.pit()) {
|
&& curslice.pit() > old.pit()) {
|
||||||
--curslice.pit();
|
--curslice.pit();
|
||||||
// since a paragraph has been deleted, all the
|
// since a paragraph has been deleted, all the
|
||||||
|
@ -78,6 +78,8 @@ What's new
|
|||||||
|
|
||||||
- Disable direct insertion of multiple spaces in mathed text (bug 1311).
|
- 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
|
* INTERNALS
|
||||||
|
Loading…
Reference in New Issue
Block a user