mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
added check if no gemetry is available
This commit is contained in:
parent
fdd5a50cb5
commit
008cc79d9f
@ -320,7 +320,8 @@ bool QgsVectorLayerEditBuffer::commitChanges( QStringList &commitErrors )
|
||||
{
|
||||
for ( QgsFeature f : mAddedFeatures )
|
||||
{
|
||||
if ( f.geometry().wkbType() == provider->wkbType() )
|
||||
if ( ( ! f.hasGeometry() ) ||
|
||||
( f.geometry().wkbType() == provider->wkbType() ) )
|
||||
continue;
|
||||
|
||||
std::unique_ptr<QgsGeometry> convertedGeom( provider->convertToProviderType( f.geometry() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user