X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraph.cpp;h=7fd271c41d619eaf42c6c23d460b5d18e2ad7650;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=72a26006322c93c1066e9b1dacc5462de6c87927;hpb=8b858d113fa50992d0e3d2dd175434dfce75a95f;p=lyx.git diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 72a2600632..7fd271c41d 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -767,7 +767,7 @@ void Paragraph::Private::insertChar(pos_type pos, char_type c, bool Paragraph::insertInset(pos_type pos, Inset * inset, - Font const & font, Change const & change) + Font const & font, Change const & change) { LASSERT(inset, return false); LASSERT(pos >= 0 && pos <= size(), return false); @@ -785,7 +785,6 @@ bool Paragraph::insertInset(pos_type pos, Inset * inset, // Some insets require run of spell checker requestSpellCheck(pos); - setFont(pos, font); return true; } @@ -1784,14 +1783,6 @@ void Paragraph::insertChar(pos_type pos, char_type c, } -bool Paragraph::insertInset(pos_type pos, Inset * inset, - Change const & change) -{ - Font no_font; - return insertInset(pos, inset, no_font, change); -} - - void Paragraph::resetFonts(Font const & font) { d->fontlist_.clear(); @@ -3606,7 +3597,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;