Skip to content
Permalink
Browse files

adapted to the return value as QgsGeometry()

  • Loading branch information
luipir committed Jun 12, 2017
1 parent e5e887f commit ac1a579b4248fb6f06fbfa8d2bdedd658ed51f5b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/qgsvectorlayereditbuffer.cpp
@@ -324,8 +324,7 @@ bool QgsVectorLayerEditBuffer::commitChanges( QStringList &commitErrors )
( f.geometry().wkbType() == provider->wkbType() ) )
continue;

std::unique_ptr<QgsGeometry> convertedGeom( provider->convertToProviderType( f.geometry() ) );
if ( ! convertedGeom )
if ( provider->convertToProviderType( f.geometry() ).isNull() )
{
commitErrors << tr( "ERROR: %n feature(s) not added - geometry type is not compatible with the current layer.", "not added features count", mAddedFeatures.size() );
success = false;

0 comments on commit ac1a579

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