mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
dfabfe49c6
commit
27a0ac410f
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 ?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user