mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Workaround for #11676
Avoid the crash we get with this combination. Having identified the real cause would of course have been better. But it seems no one has a clue.
This commit is contained in:
parent
76c7fab5a6
commit
891ba7263e
@ -549,6 +549,11 @@ 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)
|
||||
// Workaround: With empty optional argument and a trailing script,
|
||||
// we have empty slices in math macro args (#11676)
|
||||
// FIXME: Find real cause!
|
||||
continue;
|
||||
LBUFERR(inset);
|
||||
push_back(dit[i]);
|
||||
top().inset_ = inset;
|
||||
|
Loading…
Reference in New Issue
Block a user