commit d213df2f2edc081ba6e672502e008084487f736d
Author: Enrico Forestieri <[email protected]>
Date: Sun Jan 29 18:30:50 2023 +0100
Amend 891ba726
Avoid an assertion when the cursor is at the start of a math hull.
---
src/DocIterator.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/DocIterator.cpp b/src/DocIterator.cpp
index 94b7792..31a5bff 100644
--- a/src/DocIterator.cpp
+++ b/src/DocIterator.cpp
@@ -549,7 +549,7 @@ void DocIterator::updateInsets(Inset * inset)
size_t const n = slices_.size();
slices_.resize(0);
for (size_t i = 0 ; i < n; ++i) {
- if (dit[i].empty() && prevMath().lyxCode() == MATH_SCRIPT_CODE)
+ if (dit[i].empty() && pos() > 0 && prevMath().lyxCode() ==
MATH_SCRIPT_CODE)
// Workaround: With empty optional argument and a
trailing script,
// we have empty slices in math macro args (#11676)
// FIXME: Find real cause!
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs