From 4398a7b02f200a2c8196974ed7f450677d313165 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 22 Mar 2014 12:27:46 +0100 Subject: [PATCH] \lyxdeleted uses an ulem command. Therefore we need to put \cite and \ref into \mboxes, as in our native ulem commands. Fixes: #8806. --- src/Changes.cpp | 6 +++++- status.21x | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Changes.cpp b/src/Changes.cpp index d24df403cc..85cbad62de 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 17c3e7ee6d..18744c4201 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 -- 2.39.5