Skip to content
Permalink
Browse files

set provider request attribute supset only if requested, fixes 7112 a…

…nd 7267
  • Loading branch information
blazek committed Jul 6, 2013
1 parent 4538cf1 commit 0f578a46062ec74139066891f63d693d308f2f1e
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -256,7 +256,11 @@ void QgsVectorLayerFeatureIterator::useChangedAttributeFeature( QgsFeatureId fid
QgsFeature tmp;
//mDataProvider->featureAtId( fid, tmp, false, mFetchProvAttributes );
QgsFeatureRequest request;
request.setFilterFid( fid ).setFlags( QgsFeatureRequest::NoGeometry ).setSubsetOfAttributes( mProviderRequest.subsetOfAttributes() );
request.setFilterFid( fid ).setFlags( QgsFeatureRequest::NoGeometry );
if ( subsetAttrs )
{
request.setSubsetOfAttributes( mProviderRequest.subsetOfAttributes() );
}
QgsFeatureIterator fi = L->dataProvider()->getFeatures( request );
if ( fi.nextFeature( tmp ) )
{

0 comments on commit 0f578a4

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