Skip to content
Permalink
Browse files

Attribute table filter: force geometry extraction when needed

Fixes #18286
  • Loading branch information
mhugo committed Oct 24, 2018
1 parent 225c922 commit d9a10280eb1d10f19457e845bda8b80d128d19c4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsattributetabledialog.cpp
@@ -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;

0 comments on commit d9a1028

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