Remove some unnecessary negated logic.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30864 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-04 22:44:23 +00:00
parent dfabfe49c6
commit 27a0ac410f
3 changed files with 4 additions and 4 deletions

View File

@ -2791,9 +2791,9 @@ void Paragraph::checkAuthors(AuthorList const & authorList)
}
bool Paragraph::isUnchanged(pos_type pos) const
bool Paragraph::isChanged(pos_type pos) const
{
return !lookupChange(pos).changed();
return lookupChange(pos).changed();
}

View File

@ -210,7 +210,7 @@ public:
/// is there a change within the given range ?
bool isChanged(pos_type start, pos_type end) const;
/// is there an unchanged char at the given pos ?
bool isUnchanged(pos_type pos) const;
bool isChanged(pos_type pos) const;
/// is there an insertion at the given pos ?
bool isInserted(pos_type pos) const;
/// is there a deletion at the given pos ?

View File

@ -120,7 +120,7 @@ bool findChange(DocIterator & cur, bool next)
if (!next)
cur.backwardPos();
for (; cur; next ? cur.forwardPos() : cur.backwardPos())
if (cur.inTexted() && !cur.paragraph().isUnchanged(cur.pos())) {
if (cur.inTexted() && cur.paragraph().isChanged(cur.pos())) {
if (!next)
// if we search backwards, take a step forward
// to correctly set the anchor