Skip to content

Commit

Permalink
simplifier: fix skipping to last point (fixes 1a3f3d4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 9, 2016
1 parent 731a3fe commit e8a5c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaptopixelgeometrysimplifier.cpp
Expand Up @@ -197,7 +197,7 @@ bool QgsMapToPixelSimplifier::simplifyWkbGeometry(
double x1, y1, x2, y2;

checkPtr >> x1 >> y1;
checkPtr += skipZM + ( numPoints - 1 ) * ( 2 * sizeof( double ) + skipZM );
checkPtr += skipZM + ( numPoints - 2 ) * ( 2 * sizeof( double ) + skipZM );
checkPtr >> x2 >> y2;

isaLinearRing = qgsDoubleNear( x1, x2 ) && qgsDoubleNear( y1, y2 );
Expand Down

0 comments on commit e8a5c66

Please sign in to comment.