From 04bf7dcc4479b9116bdfcdab5d83d9cf6e931656 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 30 Jan 2012 20:41:59 +0000 Subject: [PATCH] ST_LocateBetweenElevations should return NULL and not fail if intersection is void (#1250) git-svn-id: http://svn.osgeo.org/postgis/trunk@8969 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwlinearreferencing.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/liblwgeom/lwlinearreferencing.c b/liblwgeom/lwlinearreferencing.c index bcb557615..e2fe66c9b 100644 --- a/liblwgeom/lwlinearreferencing.c +++ b/liblwgeom/lwlinearreferencing.c @@ -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; } -- 2.40.0