Skip to content

Commit

Permalink
Merge pull request #8298 from mhugo/fix_18286
Browse files Browse the repository at this point in the history
Attribute table filter: force geometry extraction when needed
  • Loading branch information
Hugo Mercier committed Oct 24, 2018
2 parents 1113e5b + d9a1028 commit 9462a7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsattributetabledialog.cpp
Expand Up @@ -1116,6 +1116,11 @@ void QgsAttributeTableDialog::setFilterExpression( const QString &filterString,
{
request.setFlags( QgsFeatureRequest::NoGeometry );
}
else
{
// force geometry extraction if the filter requests it
request.setFlags( request.flags() & ~QgsFeatureRequest::NoGeometry );
}
QgsFeatureIterator featIt = mLayer->getFeatures( request );

QgsFeature f;
Expand Down

0 comments on commit 9462a7e

Please sign in to comment.