]> git.lyx.org Git - features.git/blobdiff - src/DocIterator.cpp
Try to end the neverending fixIfBroken saga
[features.git] / src / DocIterator.cpp
index 4aabc4e9f52ebf1994ea26704af309d9fb7b25a1..38f2393224b1e37b1839537f12ea6b85008ec8d8 100644 (file)
@@ -562,9 +562,7 @@ bool DocIterator::fixIfBroken()
        size_t n = slices_.size();
        for (; i != n; ++i) {
                CursorSlice & cs = slices_[i];
-               if (&cs.inset() != inset
-                   || (cs.inset().inMathed() ? ! cs.inset().isActive()
-                                             : ! cs.inset().editable())) {
+               if (&cs.inset() != inset || ! cs.inset().isActive()) {
                        // the whole slice is wrong, chop off this as well
                        --i;
                        LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");