Skip to content
Permalink
Browse files

Request geometry when virtual field requires

  • Loading branch information
m-kuhn committed Jul 28, 2014
1 parent 3f076f0 commit 37370942c61c2472ab1032b214f9d1a3b0a43f4f
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -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 );
}
}
}
}

0 comments on commit 3737094

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