Skip to content

Commit 27b4306

Browse files
committedSep 25, 2017
Fix incorrect wkb type for compound curve when adding vertex to empty curve
1 parent 154fd61 commit 27b4306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/geometry/qgscompoundcurve.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void QgsCompoundCurve::removeCurve( int i )
436436

437437
void QgsCompoundCurve::addVertex( const QgsPoint &pt )
438438
{
439-
if ( mWkbType == QgsWkbTypes::Unknown )
439+
if ( mCurves.isEmpty() || mWkbType == QgsWkbTypes::Unknown )
440440
{
441441
setZMTypeFromSubGeometry( &pt, QgsWkbTypes::CompoundCurve );
442442
}

0 commit comments

Comments
 (0)
Please sign in to comment.