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:
Vincent van Ravesteijn 2013-05-19 12:28:11 +02:00
parent d9da8dc2c1
commit cd802e5cf6

View File

@ -3606,7 +3606,8 @@ int Paragraph::fixBiblio(Buffer const & buffer)
inset = new InsetBibitem(const_cast<Buffer *>(&buffer), inset = new InsetBibitem(const_cast<Buffer *>(&buffer),
InsetCommandParams(BIBITEM_CODE)); 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)); : Change::UNCHANGED));
return 1; return 1;