Apache Lucene open-source search software
LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)
Ignacio Vera0dad9ddae87b
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideDegenerateHorizontalLine.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideDegenerateHorizontalLine.javaindex c1e8bd300c2..d1bb6edcf99 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideDegenerateHorizontalLine.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoWideDegenerateHorizontalLine.java@@ -83,7 +83,7 @@ class GeoWideDegenerateHorizontalLine extends GeoBaseBBox {if (extent < 0.0) {extent += 2.0 * Math.PI;}- if (extent < Math.PI) {+ if (extent < GeoWideRectangle.MIN_WIDE_EXTENT) {throw new IllegalArgumentException("Width of rectangle too small");}