]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSpellchecker.cpp
The View->Source pane resets the format every time you click into
[lyx.git] / src / frontends / qt4 / GuiSpellchecker.cpp
index ff705cb2f80dc6766af38f7659bb584bff9dd8be..f89dd750fc8a16a0b22a09faffb12033dff23ee9 100644 (file)
@@ -257,7 +257,7 @@ bool SpellcheckerWidget::Private::atLastPos(DocIterator cursor) const
        bool const valid_end = !end_.empty();
        return cursor.depth() <= 1 && (
                cursor.atEnd() ||
-               valid_end && cursor >= end_);
+               (valid_end && cursor >= end_));
 }
 
 bool SpellcheckerWidget::Private::isWrapAround(DocIterator cursor) const