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

CHANGES
lwgeom/lwgeom.c

diff --git a/CHANGES b/CHANGES
index 22c70169e4ac5d439e65fa747621b9f73682a8a3..3b183179eb0be7323d384b690d13d4aef96948e0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,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 b67346cdd67602e0ba131fecaa92252c4cae9c42..c75309c578a95fb41498f8576384dae157453d30 100644 (file)
@@ -490,7 +490,8 @@ lwgeom_segmentize2d(LWGEOM *lwgeom, double dist)
                case COLLECTIONTYPE:
                        return (LWGEOM *)lwcollection_segmentize2d(
                                (LWCOLLECTION *)lwgeom, dist);
+
                default:
-                       return lwgeom;
+                       return lwgeom_clone(lwgeom);
        }
 }