]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / DocIterator.cpp
index 5027600da4aab003de9cfc0627ea2a479dcdfe5a..a29f364aa3deab5f974dc6adcb64f25a646bca12 100644 (file)
@@ -428,6 +428,9 @@ void DocIterator::updateInsets(Inset * inset)
 
 bool DocIterator::fixIfBroken()
 {
+       if (empty())
+               return false;
+
        // Go through the slice stack from the bottom. 
        // Check that all coordinates (idx, pit, pos) are correct and
        // that the inset is the one which is claimed to be there