]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Fix crash noticed by Bennett:
[lyx.git] / src / DocIterator.cpp
index ec1f6b89cd1fcd2bf3788797221005732935f320..ecf121582886c6a70ac810491d8570c3a7eb25fc 100644 (file)
@@ -92,7 +92,8 @@ Inset * DocIterator::nextInset() const
        if (pos() == lastpos())
                return 0;
        if (pos() > lastpos()) {
-               LYXERR0("Should not happen, but it does. ");
+               LYXERR0("Should not happen, but it does: pos() = "
+                       << pos() << ", lastpos() = " << lastpos());
                return 0;
        }
        if (inMathed())