]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Update the GuiLabel view when the document is read-only. Also disable the text field.
[lyx.git] / src / DocIterator.cpp
index ec1f6b89cd1fcd2bf3788797221005732935f320..425c6d6d5edc737e0726657a5e71e55b275cf217 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())
@@ -110,7 +111,7 @@ Inset * DocIterator::prevInset() const
                if (cell().empty())
                        // FIXME: this should not happen but it does.
                        // See bug 3189
-                       // http://bugzilla.lyx.org/show_bug.cgi?id=3189
+                       // http://www.lyx.org/trac/ticket/3189
                        return 0;
                else
                        return prevAtom().nucleus();