Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Memory provider iterator: setFields on filtered requests
... so QGIS doesn't crash on name based lookups of attributes
  • Loading branch information
m-kuhn committed Aug 6, 2013
1 parent 7748102 commit 113e6fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/memory/qgsmemoryfeatureiterator.cpp
Expand Up @@ -107,6 +107,9 @@ bool QgsMemoryFeatureIterator::nextFeatureUsingList( QgsFeature& feature )
else
close();

if ( hasFeature )
feature.setFields( &P->mFields ); // allow name-based attribute lookups

return hasFeature;
}

Expand Down

0 comments on commit 113e6fb

Please sign in to comment.