diff --git a/src/DocIterator.cpp b/src/DocIterator.cpp index 859aae9ddd..e574115c31 100644 --- a/src/DocIterator.cpp +++ b/src/DocIterator.cpp @@ -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())