From 5549d3033fe4842882fada7f26315ef397cd8e48 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 (cherry picked from commit 6e4e0869006aa4c225162164aaa14a70d041facf) --- src/insets/InsetTabular.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 94eed7893e..2037b76707 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;