Navigation Menu

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)
  • Loading branch information
nyalldawson committed Nov 1, 2016
1 parent 57a5754 commit 5e3bef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -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 );
}
}
}
Expand Down

1 comment on commit 5e3bef7

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on 5e3bef7 Nov 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.