mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
\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:
parent
9aa0fe91f6
commit
5a4363c0f5
@ -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{");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user