]> granicus.if.org Git - postgis/commitdiff
ST_LocateBetweenElevations should return NULL and not fail if intersection is void...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 30 Jan 2012 20:41:59 +0000 (20:41 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 30 Jan 2012 20:41:59 +0000 (20:41 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8969 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwlinearreferencing.c

index bcb55761526661deb2f4a2bf0ac08e6deeeacc2d..e2fe66c9b29530586bc0f615229fad4771afbf8a 100644 (file)
@@ -734,10 +734,9 @@ lwline_clip_to_ordinate_range(const LWLINE *line, char ordinate, double from, do
        {
                lwgeom_drop_bbox((LWGEOM*)lwgeom_out);
                lwgeom_add_bbox((LWGEOM*)lwgeom_out);
-               return lwgeom_out;
        }
 
-       return NULL;
+       return lwgeom_out;
 
 }