commit 15949fc99a028a63d5bca5e67824552f2238ae4a
Author: Enrico Forestieri <[email protected]>
Date: Mon Jan 27 11:18:19 2020 +0100
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(+), 0 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 6718bf3..e66474e 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 63ad41d..ee8dbd8 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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs