diff --git a/region.cpp b/region.cpp index 8a7bc6d3..021cdc51 100644 --- a/region.cpp +++ b/region.cpp @@ -111,7 +111,7 @@ region::closest (point<2> p) const { p.x, p.y < y ? y : - p.y < y + h ? y + h : + p.y > y + h ? y + h : p.y }; }