diff --git a/src/location.cpp b/src/location.cpp index 569ffaea1..459dfcab6 100644 --- a/src/location.cpp +++ b/src/location.cpp @@ -106,6 +106,7 @@ bool rectangle::contains(int x, int y) const { } bool rectangle::empty() const { + if(right < left || bottom < top) return true; return height() == 0 && width() == 0; }