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:
Jean-Marc Lasgouttes 2015-03-09 11:14:26 +01:00
parent 631bbab889
commit 17e435c47e

View File

@ -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())