Skip to content

Commit

Permalink
Address PR #36963 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jun 4, 2020
1 parent 5aecd49 commit 2dae586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -1015,7 +1015,7 @@ void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesCached( Qg
void QgsVectorLayerFeatureIterator::FetchJoinInfo::addJoinedAttributesDirect( QgsFeature &f, const QVariant &joinValue ) const
{
// Shortcut
if ( joinLayer && joinLayer->featureCount() < 1 )
if ( joinLayer && ! joinLayer->hasFeatures() )
{
return;
}
Expand Down

0 comments on commit 2dae586

Please sign in to comment.