Skip to content
Permalink
Browse files

Fix QgsFeatureRequest with expression not using provider fields

and limit (fix #15771)
  • Loading branch information
nyalldawson committed Nov 1, 2016
1 parent 57a5754 commit 5e3bef77995cec25c1adedd5c882eb68ee3e004b
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -159,6 +159,8 @@ QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( QgsVectorLayerFeat
if ( source->mFields.fieldOrigin( idx ) != QgsFields::OriginProvider )
{
mProviderRequest.disableFilter();
// can't limit at provider side
mProviderRequest.setLimit( -1 );
}
}
}

1 comment on commit 5e3bef7

@m-kuhn

This comment has been minimized.

Copy link
Member

m-kuhn commented on 5e3bef7 Nov 2, 2016

Thanks!

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