Rectangle comparison fixed

This commit is contained in:
2014-05-05 07:15:47 +02:00
parent 9e8c3161e0
commit 330a212830
+2 -2
View File
@@ -66,9 +66,9 @@ inline bool operator!=(const Rectangle &lhs, const Rectangle &rhs)
return !(lhs == rhs);
}
inline bool operator<(const Rectangle &lhs, const Rectangle &lhs)
inline bool operator<(const Rectangle &lhs, const Rectangle &rhs)
{
return (lhs.Width < lhs.Width) && (lhs.Height < lhs.Height);
return (lhs.Width < rhs.Width) && (lhs.Height < rhs.Height);
}
inline bool operator>(const Rectangle &lhs, const Rectangle &rhs)