Skip to content

Commit

Permalink
Request geometry when virtual field requires
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 28, 2014
1 parent 3f076f0 commit 3737094
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -507,13 +507,13 @@ void QgsVectorLayerFeatureIterator::prepareExpressions()
attrs.append( mSource->mFields.fieldNameIndex( col ) );
}

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

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

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

0 comments on commit 3737094

Please sign in to comment.