From: dooglus Date: Wed, 23 Jan 2008 14:44:20 +0000 (+0000) Subject: Add operator != too. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b465c84cb651cf09cb9157f3f57b2bb1be43af53;p=synfig.git Add operator != too. git-svn-id: http://svn.voria.com/code@1427 1f10aa63-cdf2-0310-b900-c93c546f37ac --- 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