From 82cbb8c5ec884dd903fc041589d83674f074dfd4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 26 Nov 2004 14:55:05 +0000 Subject: [PATCH] Fixed a bug in lwcollection_same git-svn-id: http://svn.osgeo.org/postgis/trunk@1112 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwcollection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lwgeom/lwcollection.c b/lwgeom/lwcollection.c index 95639b6f6..dcdef6a07 100644 --- a/lwgeom/lwcollection.c +++ b/lwgeom/lwcollection.c @@ -300,9 +300,11 @@ lwcollection_same(const LWCOLLECTION *c1, const LWCOLLECTION *c2) if ( TYPE_GETTYPE(c1->type) != TYPE_GETTYPE(c2->type) ) return 0; if ( c1->ngeoms != c2->ngeoms ) return 0; + lwnotice("lwcollection_same called"); + for (i=0; ingeoms; i++) { - if ( ! lwgeom_same(c1->geoms[0], c2->geoms[1]) ) + if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) return 0; } return 1; -- 2.40.0