mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
ece9228f90
commit
d29f1f6930
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user