Skip to content
Permalink
Browse files

Set wkb typ if adding the first line in QgsLineStringV2::append

  • Loading branch information
mhugent committed Jul 29, 2015
1 parent e984fb0 commit d6d5be94486266fcde2f0985c81a46cb53798ca3
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/geometry/qgslinestringv2.cpp
@@ -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;

0 comments on commit d6d5be9

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