Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adapted to the return value as QgsGeometry()
  • Loading branch information
luipir committed Jun 12, 2017
1 parent e5e887f commit ac1a579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/qgsvectorlayereditbuffer.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit ac1a579

Please sign in to comment.