projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid warning from g++ 4.3.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
rect.h
diff --git
a/synfig-core/trunk/src/synfig/rect.h
b/synfig-core/trunk/src/synfig/rect.h
index
b620575
..
9480cff
100644
(file)
--- a/
synfig-core/trunk/src/synfig/rect.h
+++ b/
synfig-core/trunk/src/synfig/rect.h
@@
-168,6
+168,10
@@
public:
bool operator&&(const Rect& rhs)const { return etl::intersect(*this, rhs); }
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 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
bool is_valid()const { return valid(); }
}; // END of class Rect