]> git.lyx.org Git - lyx.git/blobdiff - src/changes.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / changes.C
index 989d69bcb10bebc8acb6f09517e599fac8abd394..511e429ede717258b03927e40e0335fc533a34c5 100644 (file)
@@ -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;
 }