]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in pointarray box3d computation.
authorSandro Santilli <strk@keybit.net>
Tue, 18 Jan 2005 15:39:40 +0000 (15:39 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 18 Jan 2005 15:39:40 +0000 (15:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1315 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_api.c

index 46cb166b6c8abe1e4e3f6bfc70f7c2199129b1ee..914aa51602f44ea65ac1b078bc0636e277e50069 100644 (file)
@@ -698,7 +698,7 @@ pointArray_bbox(const POINTARRAY *pa)
 
                if ( TYPE_HASZ(pa->dims) ) {
                        if (pt.z > result->zmax) result->zmax = pt.z;
-                       if (pt.z < result->zmax) result->zmax = pt.z;
+                       if (pt.z < result->zmin) result->zmin = pt.z;
                }
        }