You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by iv...@apache.org on 2022/04/29 08:22:09 UTC
[lucene] branch branch_9x updated: LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)
This is an automated email from the ASF dual-hosted git repository.
ivera pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new a0fc1921fde LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)
a0fc1921fde is described below
commit a0fc1921fde103749daa666b0641754de60718a0
Author: Ignacio Vera <iv...@apache.org>
AuthorDate: Fri Apr 29 10:21:08 2022 +0200
LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)
---
.../apache/lucene/spatial3d/geom/GeoWideDegenerateHorizontalLine.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.java
index 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");
}