mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +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)
|
bool operator==(Change const & l, Change const & r)
|
||||||
{
|
{
|
||||||
return l.type == r.type &&
|
if (l.type != r.type) {
|
||||||
l.author == r.author &&
|
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;
|
l.changetime == r.changetime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user