Skip to content

Commit

Permalink
Set wkb typ if adding the first line in QgsLineStringV2::append
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 29, 2015
1 parent e984fb0 commit d6d5be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/geometry/qgslinestringv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ void QgsLineStringV2::append( const QgsLineStringV2* line )
return;
}

if ( numPoints() < 1 )
{
setZMTypeFromSubGeometry( line, QgsWKBTypes::LineString );
}

mCoords += line->mCoords;
mZ += line->mZ;
mM += line->mM;
Expand Down

0 comments on commit d6d5be9

Please sign in to comment.