Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 26, 2025
1 parent d3f7312 commit 7469c7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/qgsgeometryvalidationservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,16 @@ void QgsGeometryValidationService::onGeometryChanged( QgsVectorLayer *layer, Qgs

void QgsGeometryValidationService::onFeatureDeleted( QgsVectorLayer *layer, QgsFeatureId fid )
{
mLayerChecks[layer].singleFeatureCheckErrors.remove( fid );
VectorLayerCheckInformation &checkInformation = mLayerChecks[layer];
checkInformation.singleFeatureCheckErrors.remove( fid );

if ( !mLayerChecks[layer].topologyChecks.empty() )
if ( !checkInformation.topologyChecks.empty() )
{
invalidateTopologyChecks( layer );
}
else
{
layer->setAllowCommit( mLayerChecks[layer].singleFeatureCheckErrors.empty() );
layer->setAllowCommit( checkInformation.singleFeatureCheckErrors.empty() );
}

// There should be no geometry errors on a non-existent feature, right?
Expand Down

0 comments on commit 7469c7c

Please sign in to comment.