commit 4398a7b02f200a2c8196974ed7f450677d313165
Author: Juergen Spitzmueller <[email protected]>
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 d24df40..85cbad6 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 17c3e7e..18744c4 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