avoid compiler warning regarding operator precedence

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39815 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-10-07 07:59:50 +00:00
parent ece9228f90
commit d29f1f6930
2 changed files with 2 additions and 2 deletions

View File

@ -4194,7 +4194,7 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
}
// If from is at the end of the document (which is possible
// when leaving the mathed) LyX will crash later otherwise.
if (from.atEnd() || !to_end && from >= end)
if (from.atEnd() || (!to_end && from >= end))
break;
to = from;
from.paragraph().spellCheck();

View 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