summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorunknown <holyfoot@deer.(none)>2005-12-10 18:20:00 +0400
committerunknown <holyfoot@deer.(none)>2005-12-10 18:20:00 +0400
commit2541d76e092ec17e884539015662e9242524f29b (patch)
tree3eff49bb1276c7d1581320fe06b23103f5d4fbb2 /sql/spatial.h
parent5aeb69296a4e134f0215da3e6bcce4956b7d76ad (diff)
downloadmariadb-git-2541d76e092ec17e884539015662e9242524f29b.tar.gz
Fix for bug #14320 (MBROverlaps does wrong test)
sql/spatial.h: MBR::inner_point fixed
Diffstat (limited to 'sql/spatial.h')
-rw-r--r--sql/spatial.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/spatial.h b/sql/spatial.h
index ec5e80e00fd..206958b3eaf 100644
--- a/sql/spatial.h
+++ b/sql/spatial.h
@@ -142,7 +142,7 @@ struct MBR
bool inner_point(double x, double y) const
{
/* The following should be safe, even if we compare doubles */
- return (xmin<x) && (xmax>x) && (ymin<y) && (ymax>x);
+ return (xmin<x) && (xmax>x) && (ymin<y) && (ymax>y);
}
int overlaps(const MBR *mbr)