From 46f78dba18f9c38fa63ee6c3dca39e73ce5f52ee Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 23 Jan 2008 14:44:12 +0000 Subject: [PATCH] Add operator== for rectangles. git-svn-id: http://svn.voria.com/code@1426 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 b620575..b6894c9 100644 --- a/synfig-core/trunk/src/synfig/rect.h +++ b/synfig-core/trunk/src/synfig/rect.h @@ -168,6 +168,8 @@ public: bool operator&&(const Rect& rhs)const { return etl::intersect(*this, rhs); } + 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