mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
Fix assertion: bibitem inset without a font
Move the cursor in front of a bibitem and press enter. Paragraph::fixBiblio will insert a new bibitem without a font in the new paragraph. This will make Paragraph::fontSpan assert because the fontlist_ of the new paragraph is empty.
This commit is contained in:
parent
d9da8dc2c1
commit
cd802e5cf6
@ -3606,7 +3606,8 @@ int Paragraph::fixBiblio(Buffer const & buffer)
|
||||
inset = new InsetBibitem(const_cast<Buffer *>(&buffer),
|
||||
InsetCommandParams(BIBITEM_CODE));
|
||||
|
||||
insertInset(0, inset, Change(track_changes ? Change::INSERTED
|
||||
Font font(inherit_font, buffer.params().language);
|
||||
insertInset(0, inset, font, Change(track_changes ? Change::INSERTED
|
||||
: Change::UNCHANGED));
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user