]> git.lyx.org Git - features.git/blobdiff - src/DocIterator.cpp
Fixup the fixup d0acc3e57044: use editable()/isActive()
[features.git] / src / DocIterator.cpp
index fe1250ff335bf5d91330d12c79ca7bf5c60f241a..ac57b34a0ea0ae4256cc5a3061eb37a27d3742cd 100644 (file)
@@ -562,7 +562,9 @@ bool DocIterator::fixIfBroken()
        size_t n = slices_.size();
        for (; i != n; ++i) {
                CursorSlice & cs = slices_[i];
-               if (&cs.inset() != inset || cs.nargs() == 0) {
+               if (&cs.inset() != inset
+                   || (cs.inset().inMathed() ? ! cs.inset().isActive()
+                                             : ! cs.inset().editable())) {
                        // the whole slice is wrong, chop off this as well
                        --i;
                        LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");