Skip to content
Permalink
Browse files

spatialite provider: fix requests with attribute subsets

  • Loading branch information
jef-n committed Oct 22, 2013
1 parent f7beac6 commit fa90fc9bdd55333dca5fb003c7049a0494ecefaf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/spatialite/qgsspatialitefeatureiterator.cpp
@@ -324,7 +324,7 @@ bool QgsSpatiaLiteFeatureIterator::getFeature( sqlite3_stmt *stmt, QgsFeature &f
{
if ( subsetAttributes )
{
if ( mRequest.subsetOfAttributes().contains( ic - 1 ) )
if ( ic <= mRequest.subsetOfAttributes().size() )
{
int attrIndex = mRequest.subsetOfAttributes()[ic-1];
feature.setAttribute( attrIndex, getFeatureAttribute( stmt, ic, P->attributeFields[attrIndex].type() ) );

0 comments on commit fa90fc9

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