]> granicus.if.org Git - postgis/commitdiff
Fix incorrect call to geom->type where geom->flags is needed
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 20 Apr 2012 03:28:42 +0000 (03:28 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 20 Apr 2012 03:28:42 +0000 (03:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9651 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos_clean.c

index 88aeb9ad708d156726f331b39b10a4e40ce95aa8..baec976ca1434da66134b483c76d208ce032b7bd 100644 (file)
@@ -888,7 +888,7 @@ lwgeom_make_valid(LWGEOM* lwgeom_in)
        GEOSGeometry* geosout;
        LWGEOM *lwgeom_out;
 
-       is3d = FLAGS_GET_Z(lwgeom_in->type);
+       is3d = FLAGS_GET_Z(lwgeom_in->flags);
 
        /*
         * Step 1 : try to convert to GEOS, if impossible, clean that up first