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:
Juergen Spitzmueller 2018-02-08 19:06:35 +01:00
parent 78911c7379
commit 5549d3033f

View File

@ -6174,6 +6174,7 @@ bool InsetTabular::pasteClipboard(Cursor & cur)
inset->setChange(Change(buffer().params().track_changes ? inset->setChange(Change(buffer().params().track_changes ?
Change::INSERTED : Change::UNCHANGED)); Change::INSERTED : Change::UNCHANGED));
cur.pos() = 0; cur.pos() = 0;
cur.pit() = 0;
} }
} }
return true; return true;