Skip to content

Commit e8a5c66

Browse files
committed
simplifier: fix skipping to last point (fixes 1a3f3d4)
1 parent 731a3fe commit e8a5c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsmaptopixelgeometrysimplifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool QgsMapToPixelSimplifier::simplifyWkbGeometry(
197197
double x1, y1, x2, y2;
198198

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

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

0 commit comments

Comments
 (0)