When we copy the paragraphs, the Buffer members for the insets are
not set. As a result, we crash when attempting to access them.
This commit is contained in:
Richard Kimberly Heck 2020-04-25 01:05:15 -04:00
parent c4a8a07a09
commit b5a5a529a3

View File

@ -1801,8 +1801,11 @@ bool Text::dissolveInset(Cursor & cur)
pos_type spos = cur.pos();
pit_type spit = cur.pit();
ParagraphList plist;
if (cur.lastpit() != 0 || cur.lastpos() != 0)
if (cur.lastpit() != 0 || cur.lastpos() != 0) {
plist = paragraphs();
for (auto & p : plist)
p.setInsetBuffers(*cur.buffer());
}
cur.popBackward();
// update cursor offset
if (spit == 0)