Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 6482166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 6482166

Please sign in to comment.