bool Paragraph::insertInset(pos_type pos, Inset * inset,
- Font const & font, Change const & change)
+ 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 const & font, Change const & change)
{
- Font no_font;
- return insertInset(pos, inset, no_font, change);
+ bool const success = insertInset(pos, inset, change);
+ // Set the font/language of the inset...
+ setFont(pos, font);
+ return success;
}