Show
Ignore:
Timestamp:
09/29/09 06:31:20 (3 years ago)
Author:
strk
Message:

Ensure lwcollection_segmentize2d always return a NEW geometry. Fixes ticket #254. Add regression test for that bug.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/liblwgeom/lwcollection.c

    r4168 r4542  
    322322        LWGEOM **newgeoms; 
    323323 
    324         if ( ! col->ngeoms ) return col; 
     324        if ( ! col->ngeoms ) return lwcollection_clone(col); 
    325325 
    326326        newgeoms = lwalloc(sizeof(LWGEOM *)*col->ngeoms);