mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Correctly show deleted url with change tracking
This fixes the issue reported here: https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg202545.html I could not find an open ticket about it.
This commit is contained in:
parent
894977b62e
commit
2fdee24959
@ -2515,7 +2515,9 @@ void Paragraph::latex(BufferParams const & bparams,
|
||||
// Do we have an open font change?
|
||||
bool open_font = false;
|
||||
|
||||
Change runningChange = Change(Change::UNCHANGED);
|
||||
Change runningChange =
|
||||
runparams.inDeletedInset && !inInset().canTrackChanges()
|
||||
? runparams.changeOfDeletedInset : Change(Change::UNCHANGED);
|
||||
|
||||
Encoding const * const prev_encoding = runparams.encoding;
|
||||
|
||||
@ -3050,8 +3052,9 @@ void Paragraph::latex(BufferParams const & bparams,
|
||||
os << "{\\" << font.latexSize() << "\\par}";
|
||||
}
|
||||
|
||||
column += Changes::latexMarkChange(os, bparams, runningChange,
|
||||
Change(Change::UNCHANGED), runparams);
|
||||
if (!runparams.inDeletedInset || inInset().canTrackChanges())
|
||||
column += Changes::latexMarkChange(os, bparams, runningChange,
|
||||
Change(Change::UNCHANGED), runparams);
|
||||
|
||||
// Needed if there is an optional argument but no contents.
|
||||
if (body_pos > 0 && body_pos == size()) {
|
||||
|
@ -40,6 +40,8 @@ public:
|
||||
///
|
||||
bool hasSettings() const override { return false; }
|
||||
///
|
||||
bool canTrackChanges() const override { return name_ != "URL"; }
|
||||
///
|
||||
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
FuncStatus &) const override;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user