\lyxdeleted uses an ulem command.

Therefore we need to put \cite and \ref into \mboxes, as in our native ulem commands.

Fixes: #8806.
This commit is contained in:
Juergen Spitzmueller 2014-03-22 12:27:46 +01:00 committed by Richard Heck
parent 9aa0fe91f6
commit 5a4363c0f5

View File

@ -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{");