Skip to content

Commit c13c193

Browse files
committed
OverlayEdge: Don't skip first point when adding coordinates
Signed-off-by: Dan Baston <dbaston@gmail.com>
1 parent 123a182 commit c13c193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/core/src/main/java/org/locationtech/jts/operation/overlayng

modules/core/src/main/java/org/locationtech/jts/operation/overlayng/OverlayEdge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public Coordinate[] getCoordinatesOriented() {
147147
*/
148148
public void addCoordinates(CoordinateList coords)
149149
{
150-
boolean isFirstEdge = coords.size() > 0;
150+
boolean isFirstEdge = coords.isEmpty();
151151
if (direction) {
152152
int startIndex = 1;
153153
if (isFirstEdge) startIndex = 0;

0 commit comments

Comments
 (0)