mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +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
78911c7379
commit
5549d3033f
@ -6174,6 +6174,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;
|
||||
|
Loading…
Reference in New Issue
Block a user