Skip to content
Permalink
Browse files

fix #5487

  • Loading branch information
jef-n committed May 30, 2012
1 parent a1bf57a commit cbd88ee00120d4e27805f48cc046ac63f14f3078
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/qgsgeometry.cpp
@@ -5572,8 +5572,11 @@ GEOSGeometry* QgsGeometry::reshapeLine( const GEOSGeometry* line, const GEOSGeom
{
//make sure there are at least two intersection between line and reshape geometry
GEOSGeometry* intersectGeom = GEOSIntersection( line, reshapeLineGeos );
atLeastTwoIntersections = ( GEOSGeomTypeId( intersectGeom ) == GEOS_MULTIPOINT && GEOSGetNumGeometries( intersectGeom ) > 1 );
GEOSGeom_destroy( intersectGeom );
if ( intersectGeom )
{
atLeastTwoIntersections = ( GEOSGeomTypeId( intersectGeom ) == GEOS_MULTIPOINT && GEOSGetNumGeometries( intersectGeom ) > 1 );
GEOSGeom_destroy( intersectGeom );
}
}
catch ( GEOSException &e )
{

0 comments on commit cbd88ee

Please sign in to comment.
You can’t perform that action at this time.