Skip to content

Commit

Permalink
Merge pull request #2436 from dgoedkoop/linePointDifferenceFix
Browse files Browse the repository at this point in the history
Fix QgsGeos::linePointDifference
  • Loading branch information
jef-n committed Nov 10, 2015
2 parents 9a89408 + c050571 commit 8ec0208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeos.cpp
Expand Up @@ -551,7 +551,7 @@ GEOSGeometry* QgsGeos::linePointDifference( GEOSGeometry* GEOSsplitPoint ) const
//For each segment
QgsLineStringV2 newLine;
newLine.addVertex( line->pointN( 0 ) );
int nVertices = newLine.numPoints();
int nVertices = line->numPoints();
for ( int j = 1; j < ( nVertices - 1 ); ++j )
{
QgsPointV2 currentPoint = line->pointN( j );
Expand Down

0 comments on commit 8ec0208

Please sign in to comment.