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
This commit is contained in:
Paul Ramsey 2012-01-30 20:41:59 +00:00
parent 8e4a050bb6
commit 04bf7dcc44

View 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;
}