diff --git a/src/Changes.cpp b/src/Changes.cpp index d24df403cc..85cbad62de 100644 --- a/src/Changes.cpp +++ b/src/Changes.cpp @@ -397,6 +397,8 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, // close \lyxadded or \lyxdeleted os << '}'; column++; + if (oldChange.type == Change::DELETED) + --runparams.inulemcmd; } docstring chgTime; @@ -405,8 +407,10 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, chgTime.erase(chgTime.end() - 1); docstring macro_beg; - if (change.type == Change::DELETED) + if (change.type == Change::DELETED) { macro_beg = from_ascii("\\lyxdeleted{"); + ++runparams.inulemcmd; + } else if (change.type == Change::INSERTED) macro_beg = from_ascii("\\lyxadded{"); diff --git a/status.21x b/status.21x index 17c3e7ee6d..18744c4201 100644 --- a/status.21x +++ b/status.21x @@ -54,6 +54,8 @@ What's new - Fix LaTeX error with alphabetic delimiters in inline Listings (part of bug 8985). +- Fix output of deleted citations in change tracking mode (bug 8806). + * USER INTERFACE