From b465c84cb651cf09cb9157f3f57b2bb1be43af53 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 23 Jan 2008 14:44:20 +0000 Subject: [PATCH] Add operator != too. git-svn-id: http://svn.voria.com/code@1427 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/rect.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-core/trunk/src/synfig/rect.h b/synfig-core/trunk/src/synfig/rect.h index b6894c9..9480cff 100644 --- a/synfig-core/trunk/src/synfig/rect.h +++ b/synfig-core/trunk/src/synfig/rect.h @@ -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 -- 2.7.4