From 6e4e0869006aa4c225162164aaa14a70d041facf Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 8 Feb 2018 19:06:35 +0100 Subject: [PATCH] Reset cur.pit() when pasting into tables. The number of paragraphs can change here, so pit() can become invalid. Fixes: #9983 --- src/insets/InsetTabular.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5