Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-7906: Logic fix for crosses condition

Karl Wright2eba4cebc5fa
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java
index 5e91fa7c739..7f8f649d1ff 100644
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java
@@ -492,7 +492,7 @@ class GeoComplexPolygon extends GeoBasePolygon {
if (left != null && left.traverse(edgeIterator, minValue, maxValue) == false) {
return false;
}
- if (right != null && minValue >= low && right.traverse(edgeIterator, minValue, maxValue) == false) {
+ if (right != null && maxValue >= low && right.traverse(edgeIterator, minValue, maxValue) == false) {
return false;
}
}