Skip to content

Commit

Permalink
Fix QgsFeatureRequest with expression not using provider fields
Browse files Browse the repository at this point in the history
and limit (fix #15771)

(cherry-picked from 5e3bef7)
  • Loading branch information
nyalldawson committed Nov 23, 2016
1 parent ddb2882 commit cfeeb3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( QgsVectorLayerFeat
if ( source->mFields.fieldOrigin( idx ) != QgsFields::OriginProvider )
{
mProviderRequest.disableFilter();
// can't limit at provider side
mProviderRequest.setLimit( -1 );
}
}
}
Expand Down

0 comments on commit cfeeb3f

Please sign in to comment.