Skip to content
Permalink
Browse files

Update src/core/qgsvectorlayer.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>
  • Loading branch information
m-kuhn and mbernasocchi committed Feb 20, 2019
1 parent 707845d commit 64821661c943b39fcb429b5da3cf91230326e643
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -2892,7 +2892,7 @@ QgsAttributeList QgsVectorLayer::primaryKeyAttributes() const
long QgsVectorLayer::featureCount() const
{
if ( ! mDataProvider )
return 0;
return -1;
return mDataProvider->featureCount() +
( mEditBuffer ? mEditBuffer->mAddedFeatures.size() - mEditBuffer->mDeletedFeatureIds.size() : 0 );
}

0 comments on commit 6482166

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