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);
// Some insets require run of spell checker
requestSpellCheck(pos);
-
setFont(pos, font);
return true;
}
}
-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();
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;