]> granicus.if.org Git - postgis/commitdiff
Fix contact per a message on postgis-users from Markus Innerebner
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 26 Jan 2012 16:22:00 +0000 (16:22 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 26 Jan 2012 16:22:00 +0000 (16:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8932 b70326c6-7e19-0410-871a-916f4a2858ee

java/jdbc/src/org/postgis/LineString.java

index b5512cc76ec8d61e50fc83ccae53353963113ee8..025cdf47b859da2ae79b9a5e46016b1987214e35 100644 (file)
@@ -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?