Skip to content

Commit

Permalink
fetch feature without attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and m-kuhn committed Oct 15, 2018
1 parent 1024c1b commit 8dce0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsgeometryvalidationservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void QgsGeometryValidationService::processFeature( QgsVectorLayer *layer, QgsFea
{
emit geometryCheckStarted( layer, fid );

QgsFeature feature = layer->getFeature( fid );
QgsGeometry geometry = layer->getGeometry( fid );

const auto &checks = mLayerChecks[layer].singleFeatureChecks;
mLayerChecks[layer].singleFeatureCheckErrors.remove( fid );
Expand All @@ -333,7 +333,7 @@ void QgsGeometryValidationService::processFeature( QgsVectorLayer *layer, QgsFea
QList<std::shared_ptr<QgsSingleGeometryCheckError>> allErrors;
for ( QgsSingleGeometryCheck *check : checks )
{
const auto errors = check->processGeometry( feature.geometry() );
const auto errors = check->processGeometry( geometry );

for ( auto error : errors )
allErrors.append( std::shared_ptr<QgsSingleGeometryCheckError>( error ) );
Expand Down

0 comments on commit 8dce0e8

Please sign in to comment.