From 7f645770f2f2aff72e39befeec7e1321d9fa1a2b Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Fri, 19 Jan 2018 17:50:51 +0000 Subject: [PATCH] Fix bug in iterate_4d. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Raúl Marín Rodríguez. Closes #3997 Closes https://github.com/postgis/postgis/pull/196 git-svn-id: http://svn.osgeo.org/postgis/trunk@16341 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeom_median.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblwgeom/lwgeom_median.c b/liblwgeom/lwgeom_median.c index 5dfe64095..bcd99a696 100644 --- a/liblwgeom/lwgeom_median.c +++ b/liblwgeom/lwgeom_median.c @@ -101,7 +101,7 @@ iterate_4d(POINT3D* curr, const POINT4D* points, uint32_t npoints, double* dista { dx += (points[i].x - curr->x) / distances[i]; dy += (points[i].y - curr->y) / distances[i]; - dz += (points[i].y - curr->z) / distances[i]; + dz += (points[i].z - curr->z) / distances[i]; } } -- 2.49.0