mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Fix assertion: label copy-paste-as-ref in new par
Because the reference got inserted without specifying a font, Paragraph::fontSpan fired an assertion because the fontlist_ is empty.
This commit is contained in:
parent
2d8941eec3
commit
d9da8dc2c1
@ -901,7 +901,8 @@ void copyInset(Cursor const & cur, Inset * inset, docstring const & plaintext)
|
||||
Paragraph par;
|
||||
BufferParams const & bp = cur.buffer()->params();
|
||||
par.setLayout(bp.documentClass().plainLayout());
|
||||
par.insertInset(0, inset, Change(Change::UNCHANGED));
|
||||
Font font(inherit_font, bp.language);
|
||||
par.insertInset(0, inset, font, Change(Change::UNCHANGED));
|
||||
pars.push_back(par);
|
||||
theCuts.push(make_pair(pars, bp.documentClassPtr()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user