Skip to content

Commit d6d5be9

Browse files
committedJul 29, 2015
Set wkb typ if adding the first line in QgsLineStringV2::append
1 parent e984fb0 commit d6d5be9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/geometry/qgslinestringv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ void QgsLineStringV2::append( const QgsLineStringV2* line )
294294
return;
295295
}
296296

297+
if ( numPoints() < 1 )
298+
{
299+
setZMTypeFromSubGeometry( line, QgsWKBTypes::LineString );
300+
}
301+
297302
mCoords += line->mCoords;
298303
mZ += line->mZ;
299304
mM += line->mM;

0 commit comments

Comments
 (0)
Please sign in to comment.