mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* src/changes.C: two changes of type UNCHANGED are always equals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16619 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d3216ba624
commit
2fc6d44b94
@ -53,8 +53,16 @@ bool Change::isSimilarTo(Change const & change)
|
||||
|
||||
bool operator==(Change const & l, Change const & r)
|
||||
{
|
||||
return l.type == r.type &&
|
||||
l.author == r.author &&
|
||||
if (l.type != r.type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// two changes of type UNCHANGED are always equal
|
||||
if (l.type == Change::UNCHANGED) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return l.author == r.author &&
|
||||
l.changetime == r.changetime;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user