From: Michael Schmitt Date: Wed, 1 Nov 2006 21:17:56 +0000 (+0000) Subject: * text.C: fix another change tracking FIXME X-Git-Tag: 1.6.10~12090 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=822ef847edcb33d71ae6d7fc50f5f7b279c0b890;p=lyx.git * text.C: fix another change tracking FIXME git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15680 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/text.C b/src/text.C index 9b2949e9c6..e90f23fb94 100644 --- a/src/text.C +++ b/src/text.C @@ -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(inset), Change(Change::INSERTED)); + par.insertInset(0, static_cast(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();