Skip to content
Permalink
Browse files

Request geometry when virtual field expression require so

  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent c255823 commit 17ab64eddc6212bacdce1dd7afbdd0743d759e84
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -507,6 +507,11 @@ void QgsVectorLayerFeatureIterator::prepareExpressions()
attrs.append( mSource->mFields.fieldNameIndex( col ) );
}

if ( exp->needsGeometry() )
{
mRequest.setFlags( mRequest.flags() & ~QgsFeatureRequest::NoGeometry );
}

mRequest.setSubsetOfAttributes( mRequest.subsetOfAttributes() + attrs );
}
}

0 comments on commit 17ab64e

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