Skip to content

Commit

Permalink
Attribute table filter: force geometry extraction when needed
Browse files Browse the repository at this point in the history
Fixes #18286
  • Loading branch information
Hugo Mercier committed Oct 24, 2018
1 parent 225c922 commit d9a1028
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 d9a1028

Please sign in to comment.