Skip to content

Commit

Permalink
Update src/core/vector/qgsvectorlayer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Cabieces <julien.cabieces@oslandia.com>
  • Loading branch information
nyalldawson and troopa81 committed Nov 18, 2022
1 parent dda5b39 commit 26277ba
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/vector/qgsvectorlayer.cpp
Expand Up @@ -3479,14 +3479,7 @@ bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids, QgsVectorLayer::
}
else
{
if ( mEditBuffer )
{
res = mEditBuffer->deleteFeatures( fids );
}
else
{
res = false;
}
res = mEditBuffer && mEditBuffer->deleteFeatures( fids );
}

if ( res )
Expand Down

0 comments on commit 26277ba

Please sign in to comment.