* 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:
Michael Schmitt 2007-01-08 23:28:41 +00:00
parent d3216ba624
commit 2fc6d44b94

View File

@ -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;
} }