Because merging is going to be fun.
[ipdf/code.git] / src / rect.h
index 46aa5fb..3c4a105 100644 (file)
@@ -20,10 +20,10 @@ namespace IPDF
                }
                inline bool PointIn(Real pt_x, Real pt_y) const
                {
-                       if (pt_x < x) return false;
-                       if (pt_y < y) return false;
-                       if (pt_x > x + w) return false;
-                       if (pt_y > y + h) return false;
+                       if (pt_x <= x) return false;
+                       if (pt_y <= y) return false;
+                       if (pt_x >= x + w) return false;
+                       if (pt_y >= y + h) return false;
                        return true;
                }
        };

UCC git Repository :: git.ucc.asn.au