mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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();
|
fixIfBroken();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!inset->editable()) {
|
if ((inset->inMathed() && !inset->isActive())
|
||||||
LYXERR0("Inset found on cursor stack is not editable.");
|
|| (!inset->inMathed() && !inset->editable())) {
|
||||||
|
LYXERR0("Inset found on cursor stack is not active.");
|
||||||
fixIfBroken();
|
fixIfBroken();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user