From 330a212830849d4a518dec312aa022860f70f293 Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Mon, 5 May 2014 07:15:47 +0200 Subject: [PATCH] Rectangle comparison fixed --- src/Util/Rectangle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/Rectangle.h b/src/Util/Rectangle.h index 7e55659..0d0db32 100644 --- a/src/Util/Rectangle.h +++ b/src/Util/Rectangle.h @@ -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)