From cd802e5cf6068a5a37bbc3bd58f3cf6d29874233 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 19 May 2013 12:28:11 +0200 Subject: [PATCH] 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. --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index c1e208f84f..0777a78862 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3606,7 +3606,8 @@ int Paragraph::fixBiblio(Buffer const & buffer) inset = new InsetBibitem(const_cast(&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; -- 2.39.2