Skip to content

Commit

Permalink
Request geometry when virtual field expression require so
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 24, 2014
1 parent c255823 commit 17ab64e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 17ab64e

Please sign in to comment.