mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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();
|
||||
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