Skip to content

Commit

Permalink
Invert logic
Browse files Browse the repository at this point in the history
because True is not False
  • Loading branch information
m-kuhn committed Jun 4, 2018
1 parent 6a265d4 commit 5b0473a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectordataprovider.cpp
Expand Up @@ -54,9 +54,9 @@ bool QgsVectorDataProvider::empty() const
request.setFlags( QgsFeatureRequest::NoGeometry );
request.setLimit( 1 );
if ( getFeatures( request ).nextFeature( f ) )
return true;
else
return false;
else
return true;
}

QgsFeatureSource::FeatureAvailability QgsVectorDataProvider::hasFeatures() const
Expand Down

0 comments on commit 5b0473a

Please sign in to comment.