Skip to content
Permalink
Browse files
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 113e6fbb846f933c9a4a51b3fbc73ec21353a4a5
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/memory/qgsmemoryfeatureiterator.cpp
@@ -107,6 +107,9 @@ bool QgsMemoryFeatureIterator::nextFeatureUsingList( QgsFeature& feature )
else
close();

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

return hasFeature;
}

0 comments on commit 113e6fb

Please sign in to comment.