mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +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
3c0f46fb33
commit
d5eeabcfdd
@ -555,6 +555,11 @@ void DocIterator::sanitize()
|
||||
fixIfBroken();
|
||||
break;
|
||||
}
|
||||
if (!inset->editable()) {
|
||||
LYXERR0("Inset found on cursor stack is not editable.");
|
||||
fixIfBroken();
|
||||
break;
|
||||
}
|
||||
push_back(sl[i]);
|
||||
top().inset_ = inset;
|
||||
if (fixIfBroken())
|
||||
|
Loading…
Reference in New Issue
Block a user