Skip to content

Commit ea863d2

Browse files
committed
Fix build
1 parent b8706ea commit ea863d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/geometry/qgslinestringv2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void QgsLineStringV2::append( const QgsLineStringV2* line )
308308
else
309309
{
310310
// if append line does not have z coordinates, fill with 0 to match number of points in final line
311-
mZ.insert( mZ.count(), mX.size() - mZ.size(), 0 );
311+
mZ.insert( mZ.count(), mCoords.size() - mZ.size(), 0 );
312312
}
313313

314314
if ( line->is3D() )
@@ -318,7 +318,7 @@ void QgsLineStringV2::append( const QgsLineStringV2* line )
318318
else
319319
{
320320
// if append line does not have m values, fill with 0 to match number of points in final line
321-
mM.insert( mM.count(), mX.size() - mM.size(), 0 );
321+
mM.insert( mM.count(), mCoords.size() - mM.size(), 0 );
322322
}
323323

324324
mBoundingBox = QgsRectangle(); //set bounding box invalid

0 commit comments

Comments
 (0)