Skip to content
Permalink
Browse files

notify adaptGeometry error via pushMessage

  • Loading branch information
luipir committed Sep 26, 2017
1 parent 43ef3f3 commit 1e2a213129941d9d12469676c5e47b356bd53b95
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsvectordataprovider.cpp
@@ -740,6 +740,11 @@ QgsGeometry* QgsVectorDataProvider::convertToProviderType( const QgsGeometry* ge
{
return new QgsGeometry( outputGeom );
}

QString msg = tr( "Geometry type %1 not compatible with provider type %2.", "not compatible geometry" )
.arg( QgsWKBTypes::displayString( geometry->wkbType() ) )
.arg( QgsWKBTypes::displayString( providerGeomType ) );
const_cast<QgsVectorDataProvider*>( this )->pushError( msg );
return nullptr;
}

0 comments on commit 1e2a213

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