commit 5a4363c0f56780cbf83306d2f5c5451897528050 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sat Mar 22 12:27:46 2014 +0100
\lyxdeleted uses an ulem command. Therefore we need to put \cite and \ref into \mboxes, as in our native ulem commands. Fixes: #8806. diff --git a/src/Changes.cpp b/src/Changes.cpp index d03a371..4292f1b 100644 --- a/src/Changes.cpp +++ b/src/Changes.cpp @@ -398,6 +398,8 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, // close \lyxadded or \lyxdeleted os << '}'; column++; + if (oldChange.type == Change::DELETED) + --runparams.inulemcmd; } docstring chgTime; @@ -406,8 +408,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{");