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
This commit is contained in:
parent
9987adb2a7
commit
6e4e086900
@ -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