- par->insertInset(0, new_inset,
- LyXFont(LyXFont::ALL_INHERIT,
- bparams.language));
+ LyXText * txt = current_view->getLyXText();
+ LyXCursor cur = txt->cursor;
+ txt->setCursorIntern(current_view, par, 0);
+ txt->insertInset(current_view, new_inset);
+ txt->fullRebreak(current_view);
+ txt->setCursorIntern(current_view, cur.par(), cur.pos());