Add operator != too.
[synfig.git] / synfig-core / trunk / src / synfig / rect.h
index b6894c9..9480cff 100644 (file)
@@ -170,6 +170,8 @@ public:
 
        bool operator==(const Rect &rhs)const { return get_min() == rhs.get_min() && get_max() == rhs.get_max(); }
 
+       bool operator!=(const Rect &rhs)const { return get_min() != rhs.get_min() || get_max() != rhs.get_max(); }
+
        bool is_valid()const { return valid(); }
 }; // END of class Rect