Skip to content

Commit 5b0473a

Browse files
committedJun 4, 2018
Invert logic
because True is not False
1 parent 6a265d4 commit 5b0473a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsvectordataprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ bool QgsVectorDataProvider::empty() const
5454
request.setFlags( QgsFeatureRequest::NoGeometry );
5555
request.setLimit( 1 );
5656
if ( getFeatures( request ).nextFeature( f ) )
57-
return true;
58-
else
5957
return false;
58+
else
59+
return true;
6060
}
6161

6262
QgsFeatureSource::FeatureAvailability QgsVectorDataProvider::hasFeatures() const

0 commit comments

Comments
 (0)
Please sign in to comment.