From: Paul Ramsey Date: Thu, 26 Jan 2012 16:22:00 +0000 (+0000) Subject: Fix contact per a message on postgis-users from Markus Innerebner X-Git-Tag: 2.0.0alpha3~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=804e0db26a123fc41fc2a0308b08322a88dbaf6f;p=postgis Fix contact per a message on postgis-users from Markus Innerebner git-svn-id: http://svn.osgeo.org/postgis/trunk@8932 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/java/jdbc/src/org/postgis/LineString.java b/java/jdbc/src/org/postgis/LineString.java index b5512cc76..025cdf47b 100644 --- a/java/jdbc/src/org/postgis/LineString.java +++ b/java/jdbc/src/org/postgis/LineString.java @@ -67,7 +67,7 @@ public class LineString extends PointComposedGeom { boolean cutPoint = this.getLastPoint() == null || this.getLastPoint().equals(other.getFirstPoint()); - int count = points.length + points.length - (cutPoint ? 1 : 0); + int count = points.length + opoints.length - (cutPoint ? 1 : 0); Point[] p = new Point[count]; // Maybe we should use System.arrayCopy here?