From 17e435c47e36effd36d25cec900369e04f6acb4e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 9 Mar 2015 11:14:26 +0100 Subject: [PATCH] Check that DocIterator::sanitize only adds editable insets This fixes the crash on ticket #9432, but the bug there has other causes. --- src/DocIterator.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()) -- 2.39.2