mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
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:
parent
eb5e8aba5e
commit
c2f785bdcc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user