mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-01 00:05:25 -04:00
Fix incorrect wkb type for compound curve when adding vertex to empty curve
This commit is contained in:
parent
154fd61d5a
commit
27b43064b3
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user