]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
make sure the 'setStatus(Collapsed)' crash won't occur otherwise
[lyx.git] / src / cursor.C
index f0fb6577c928862d079112b58bd26220424de418..d77f7c25c918735a8a0a0390eaa6e4ecca31088f 100644 (file)
@@ -507,7 +507,7 @@ std::ostream & operator<<(std::ostream & os, LCursor const & cur)
 
 bool LCursor::isInside(InsetBase const * p)
 {
-       for (size_t i = 0; i < depth(); ++i)
+       for (size_t i = 0; i != depth(); ++i)
                if (&operator[](i).inset() == p)
                        return true;
        return false;
@@ -1187,4 +1187,3 @@ void LCursor::fixIfBroken()
                lyxerr << "correcting cursor to level " << depth() << endl;
        }
 }
-