From: Juergen Spitzmueller Date: Thu, 8 Feb 2018 18:06:35 +0000 (+0100) Subject: Reset cur.pit() when pasting into tables. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3906 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6e4e0869006aa4c225162164aaa14a70d041facf;p=features.git Reset cur.pit() when pasting into tables. The number of paragraphs can change here, so pit() can become invalid. Fixes: #9983 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index bc0d0ae3c6..f9503c7124 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;