From 15949fc99a028a63d5bca5e67824552f2238ae4a Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 27 Jan 2020 11:18:19 +0100 Subject: [PATCH] Fix bug #11716 Force closing and reopening of \lyxdeleted after deleted display math so that the following deleted text can be correctly striked out. --- src/Paragraph.cpp | 8 ++++++++ status.23x | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 6718bf35db..e66474eecc 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2747,6 +2747,14 @@ void Paragraph::latex(BufferParams const & bparams, runningChange, style, i, column); if (incremented) --parInline; + + if (deleted_display_math) { + // Close \lyxdeleted and force its + // reopening (if needed) + os << '}'; + column++; + runningChange = Change(Change::UNCHANGED); + } } } else if (i >= start_pos && (end_pos == -1 || i < end_pos)) { try { diff --git a/status.23x b/status.23x index 63ad41d0a7..ee8dbd8132 100644 --- a/status.23x +++ b/status.23x @@ -49,6 +49,8 @@ What's new - Fix erroneous space in output caused by changebar module (bug 11473). +- Correctly strike out deleted text after deleted display math (bug 11716). + * USER INTERFACE -- 2.39.5