mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Check that DocIterator::sanitize only adds editable insets
This fixes the crash on ticket #9432, but the bug there has other causes.
This commit is contained in:
parent
631bbab889
commit
17e435c47e
@ -555,6 +555,11 @@ void DocIterator::sanitize()
|
|||||||
fixIfBroken();
|
fixIfBroken();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!inset->editable()) {
|
||||||
|
LYXERR0("Inset found on cursor stack is not editable.");
|
||||||
|
fixIfBroken();
|
||||||
|
break;
|
||||||
|
}
|
||||||
push_back(sl[i]);
|
push_back(sl[i]);
|
||||||
top().inset_ = inset;
|
top().inset_ = inset;
|
||||||
if (fixIfBroken())
|
if (fixIfBroken())
|
||||||
|
Loading…
Reference in New Issue
Block a user