Skip to content
Permalink
Browse files

Fix incorrect wkb type for compound curve when adding vertex to empty…

… curve
  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 154fd61 commit 27b43064b373d19cbce17f9fc73af4e9a2a8884b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgscompoundcurve.cpp
@@ -436,7 +436,7 @@ void QgsCompoundCurve::removeCurve( int i )

void QgsCompoundCurve::addVertex( const QgsPoint &pt )
{
if ( mWkbType == QgsWkbTypes::Unknown )
if ( mCurves.isEmpty() || mWkbType == QgsWkbTypes::Unknown )
{
setZMTypeFromSubGeometry( &pt, QgsWkbTypes::CompoundCurve );
}

0 comments on commit 27b4306

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