Skip to content
Permalink
Browse files

simplifier: fix skipping to last point (fixes 1a3f3d4)

  • Loading branch information
jef-n committed Feb 1, 2016
1 parent 731a3fe commit e8a5c6658a0bb7a13c530383685720c23a2ae7a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaptopixelgeometrysimplifier.cpp
@@ -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 );

0 comments on commit e8a5c66

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