]> granicus.if.org Git - postgis/commitdiff
Fixed lwgeom_segmentize2d() to always return a clone
authorSandro Santilli <strk@keybit.net>
Thu, 1 Dec 2005 13:53:14 +0000 (13:53 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 1 Dec 2005 13:53:14 +0000 (13:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2115 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
lwgeom/lwgeom.c

diff --git a/CHANGES b/CHANGES
index 88bd5bf7f28d72cf7af532abdcd4607ac6f50eb5..29de0e7243a5d5e4c67d06497cc84dfd8125c299 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -37,6 +37,7 @@ PostGIS 1.0.6CVS
        - Initial support for postgresql 8.2
        - Fixed segfault in addPoint()
        - Fixed short-allocation in lwcollection_clone()
+       - Fixed bug in segmentize()
 
 PostGIS 1.0.5
 2005/11/25
index 582cef4cac62c95ec3c874287b761c95d45a2180..c30b5d112daf4bf6c7f78f38011d130b9a603445 100644 (file)
@@ -511,8 +511,9 @@ lwgeom_segmentize2d(LWGEOM *lwgeom, double dist)
                case COLLECTIONTYPE:
                        return (LWGEOM *)lwcollection_segmentize2d(
                                (LWCOLLECTION *)lwgeom, dist);
+
                default:
-                       return lwgeom;
+                       return lwgeom_clone(lwgeom);
        }
 }