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:
Juergen Spitzmueller 2018-02-08 19:06:35 +01:00
parent 9987adb2a7
commit 6e4e086900

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;