Skip to content

Commit

Permalink
notify adaptGeometry error via pushMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Sep 26, 2017
1 parent 43ef3f3 commit 1e2a213
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsvectordataprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e2a213

Please sign in to comment.