Skip to content
Permalink
Browse files

fetch feature without attributes

  • Loading branch information
3nids authored and m-kuhn committed Oct 12, 2018
1 parent 1024c1b commit 8dce0e8b9ece37a4a7ce33fa8d91adf57ead119b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsgeometryvalidationservice.cpp
@@ -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 );
@@ -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 ) );

0 comments on commit 8dce0e8

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