mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
Reset cur.pit() when pasting into tables.
The number of paragraphs can change here, so pit() can become invalid.
Fixes: #9983
(cherry picked from commit 6e4e086900
)
This commit is contained in:
parent
2d06255e20
commit
0c95259589
@ -6182,6 +6182,7 @@ bool InsetTabular::pasteClipboard(Cursor & cur)
|
||||
inset->setChange(Change(buffer().params().track_changes ?
|
||||
Change::INSERTED : Change::UNCHANGED));
|
||||
cur.pos() = 0;
|
||||
cur.pit() = 0;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -92,6 +92,9 @@ What's new
|
||||
- Fix crash when closing master with children and grandchildren
|
||||
(bug 10766).
|
||||
|
||||
- Fix crash when pasting multiple cells into a multi-paragraph cell of
|
||||
a table (bug 9983).
|
||||
|
||||
- Fix random crash when dissolving inset (bug 10667).
|
||||
|
||||
- Fix potential crash when cursor enters an inset (bug 10691).
|
||||
|
Loading…
Reference in New Issue
Block a user