mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-02 14:01:10 +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
045dee3755
commit
4398a7b02f
@ -397,6 +397,8 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
|
|||||||
// close \lyxadded or \lyxdeleted
|
// close \lyxadded or \lyxdeleted
|
||||||
os << '}';
|
os << '}';
|
||||||
column++;
|
column++;
|
||||||
|
if (oldChange.type == Change::DELETED)
|
||||||
|
--runparams.inulemcmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
docstring chgTime;
|
docstring chgTime;
|
||||||
@ -405,8 +407,10 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
|
|||||||
chgTime.erase(chgTime.end() - 1);
|
chgTime.erase(chgTime.end() - 1);
|
||||||
|
|
||||||
docstring macro_beg;
|
docstring macro_beg;
|
||||||
if (change.type == Change::DELETED)
|
if (change.type == Change::DELETED) {
|
||||||
macro_beg = from_ascii("\\lyxdeleted{");
|
macro_beg = from_ascii("\\lyxdeleted{");
|
||||||
|
++runparams.inulemcmd;
|
||||||
|
}
|
||||||
else if (change.type == Change::INSERTED)
|
else if (change.type == Change::INSERTED)
|
||||||
macro_beg = from_ascii("\\lyxadded{");
|
macro_beg = from_ascii("\\lyxadded{");
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ What's new
|
|||||||
- Fix LaTeX error with alphabetic delimiters in inline Listings (part of bug
|
- Fix LaTeX error with alphabetic delimiters in inline Listings (part of bug
|
||||||
8985).
|
8985).
|
||||||
|
|
||||||
|
- Fix output of deleted citations in change tracking mode (bug 8806).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
Loading…
Reference in New Issue
Block a user