Skip to content
Permalink
Browse files

Fix setting correct WKB type for compound curves when adding first curve

  • Loading branch information
nyalldawson committed Sep 21, 2017
1 parent cee1f56 commit 9d9c0e40a6e5230d27134424497aebd6e9e51b30
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/geometry/qgscompoundcurve.cpp
@@ -396,13 +396,13 @@ void QgsCompoundCurve::addCurve( QgsCurve *c )
{
if ( c )
{
mCurves.append( c );

if ( mWkbType == QgsWkbTypes::Unknown )
if ( mCurves.empty() )
{
setZMTypeFromSubGeometry( c, QgsWkbTypes::CompoundCurve );
}

mCurves.append( c );

if ( QgsWkbTypes::hasZ( mWkbType ) && !QgsWkbTypes::hasZ( c->wkbType() ) )
{
c->addZValue();

0 comments on commit 9d9c0e4

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