Skip to content
Permalink
Browse files

crash fix for #2224

git-svn-id: http://svn.osgeo.org/qgis/trunk@12386 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 9, 2009
1 parent df073ea commit dc97c2614101439c2188c4c652268f92e935a1f0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsgeometry.cpp
@@ -5172,7 +5172,7 @@ GEOSGeometry* QgsGeometry::reshapeLine( const GEOSGeometry* line, const GEOSGeom
return 0;
}

//make sure there are at least two instersction between line and reshape geometry
//make sure there are at least two intersection between line and reshape geometry
GEOSGeometry* intersectGeom = GEOSIntersection( line, reshapeLineGeos );
bool atLeastTwoIntersections = ( GEOSGeomTypeId( intersectGeom ) == GEOS_MULTIPOINT && GEOSGetNumGeometries( intersectGeom ) > 1 );
GEOSGeom_destroy( intersectGeom );
@@ -5334,7 +5334,7 @@ GEOSGeometry* QgsGeometry::reshapeLine( const GEOSGeometry* line, const GEOSGeom
}

//add the longest segment from the probable list for rings (only used for polygon rings)
if ( isRing )
if ( isRing && probableParts.size() > 0 )
{
GEOSGeometry* maxGeom = 0; //the longest geometry in the probabla list
GEOSGeometry* currentGeom = 0;

0 comments on commit dc97c26

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