* text.C: fix another change tracking FIXME

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15680 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-11-01 21:17:56 +00:00
parent f7161e309e
commit 822ef847ed

View File

@ -1836,6 +1836,7 @@ bool LyXText::redoParagraph(BufferView & bv, pit_type const pit)
{
// 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) {
@ -1850,8 +1851,9 @@ bool LyXText::redoParagraph(BufferView & bv, pit_type const pit)
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();
}
}
@ -1859,7 +1861,6 @@ bool LyXText::redoParagraph(BufferView & bv, pit_type const pit)
// 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();