{
// remove rows of paragraph, keep track of height changes
Paragraph & par = pars_[pit];
+ Buffer const & buffer = *bv.buffer();
// Add bibitem insets if necessary
if (par.layout()->labeltype == LABEL_BIBLIO) {
if (!hasbibitem) {
InsetBibitem * inset(new
InsetBibitem(InsetCommandParams("bibitem")));
- // FIXME: change tracking (MG)
- par.insertInset(0, static_cast<InsetBase *>(inset), Change(Change::INSERTED));
+ par.insertInset(0, static_cast<InsetBase *>(inset),
+ Change(buffer.params().trackChanges ?
+ Change::INSERTED : Change::UNCHANGED));
bv.cursor().posRight();
}
}
// redo insets
// FIXME: We should always use getFont(), see documentation of
// noFontChange() in insetbase.h.
- Buffer const & buffer = *bv.buffer();
LyXFont const bufferfont = buffer.params().getFont();
InsetList::iterator ii = par.insetlist.begin();
InsetList::iterator iend = par.insetlist.end();