rust/integral-geometry/src/lib.rs
changeset 14747 75ff5c643004
parent 14746 19d30d96d7d6
child 15046 dc4a12a84c92
--- a/rust/integral-geometry/src/lib.rs	Wed Mar 27 22:10:46 2019 +0300
+++ b/rust/integral-geometry/src/lib.rs	Wed Mar 27 23:26:58 2019 +0300
@@ -434,7 +434,7 @@
 
     #[inline]
     pub fn intersects(&self, other: &Rect) -> bool {
-        self.left() <= self.right()
+        self.left() <= other.right()
             && self.right() >= other.left()
             && self.top() <= other.bottom()
             && self.bottom() >= other.top()