mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
Fixup 1c07c0dc
: editable() is unusable in mathed
This is a relic from IU (Inset Unification): editable() is for text
insets and isActive() for mathed. This needs to be cleaned up.
Part of bug #10667.
(cherry picked from commit d0acc3e570
)
This commit is contained in:
parent
ba5e8c443e
commit
4499680bd9
@ -535,7 +535,7 @@ bool DocIterator::fixIfBroken()
|
|||||||
size_t n = slices_.size();
|
size_t n = slices_.size();
|
||||||
for (; i != n; ++i) {
|
for (; i != n; ++i) {
|
||||||
CursorSlice & cs = slices_[i];
|
CursorSlice & cs = slices_[i];
|
||||||
if (&cs.inset() != inset || !cs.inset().editable()) {
|
if (&cs.inset() != inset || cs.nargs() == 0) {
|
||||||
// the whole slice is wrong, chop off this as well
|
// the whole slice is wrong, chop off this as well
|
||||||
--i;
|
--i;
|
||||||
LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");
|
LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");
|
||||||
|
Loading…
Reference in New Issue
Block a user