[geos-commits] r3055 - trunk/src/geom
svn_geos at osgeo.org
svn_geos at osgeo.org
Sun Jun 20 21:57:50 EDT 2010
Author: strk
Date: 2010-06-21 01:57:50 +0000 (Mon, 21 Jun 2010)
New Revision: 3055
Modified:
trunk/src/geom/LineString.cpp
Log:
LineString::getPointN is part of the API, check before segfaulting..
Modified: trunk/src/geom/LineString.cpp
===================================================================
--- trunk/src/geom/LineString.cpp 2010-06-21 01:49:22 UTC (rev 3054)
+++ trunk/src/geom/LineString.cpp 2010-06-21 01:57:50 UTC (rev 3055)
@@ -169,6 +169,7 @@
{
assert(getFactory());
assert(points.get());
+ if ( n >= points->size() ) return 0;
return getFactory()->createPoint(points->getAt(n));
}
More information about the geos-commits
mailing list