Skip to content
Permalink
Browse files

Invert logic

because True is not False
  • Loading branch information
m-kuhn committed Jun 4, 2018
1 parent 6a265d4 commit 5b0473aabe2a09861b9355d57cdbca19088bf8dd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectordataprovider.cpp
@@ -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

0 comments on commit 5b0473a

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