Use isActive() instead of editable() in mathed.

Fixes crash introduced in [17e435c4/lyxgit].

editable() is more related to Texted. It is false for closed collapsable insets
Eventually the two methods should be merged.
This commit is contained in:
Jean-Marc Lasgouttes 2015-03-22 21:40:52 +01:00
parent eb5e8aba5e
commit c2f785bdcc

View File

@ -577,8 +577,9 @@ void DocIterator::sanitize()
fixIfBroken();
break;
}
if (!inset->editable()) {
LYXERR0("Inset found on cursor stack is not editable.");
if ((inset->inMathed() && !inset->isActive())
|| (!inset->inMathed() && !inset->editable())) {
LYXERR0("Inset found on cursor stack is not active.");
fixIfBroken();
break;
}