mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Fix bug #11850.
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:
parent
c4a8a07a09
commit
b5a5a529a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user