]> granicus.if.org Git - postgis/commitdiff
Add comment and clearer information to fix for #239
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 17 Aug 2009 13:19:49 +0000 (13:19 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 17 Aug 2009 13:19:49 +0000 (13:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4419 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_svg.c

index 8b6d3b42141b20840287b2f55125abb88e2cc7dc..273d4a8e7b4df9d96ca63895ad8aa1d86b60e229 100644 (file)
@@ -461,7 +461,8 @@ assvg_collection_size(LWGEOM_INSPECTED *insp, bool relative, int precision)
                size += assvg_inspected_size(subinsp, relative, precision);
                lwinspected_release(subinsp);
        }
-       if ( size )
+       
+       if ( i ) /* We have some geometries, so we need extra space for delimiters. */
                size += sizeof(";") * --i;
 
        return size;