Skip to content

Commit

Permalink
Follow up 1f02fd
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 4, 2016
1 parent 1f02fd4 commit 19ab72c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/providers/ogr/qgsogrfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,16 @@ bool QgsOgrFeatureIterator::fetchFeature( QgsFeature& feature )
}
else if ( mRequest.filterType() == QgsFeatureRequest::FilterFids )
{
if ( mFilterFidsIt == mFilterFids.constEnd() )
{
close();
return false;
}
else
while ( mFilterFidsIt != mFilterFids.constEnd() )
{
QgsFeatureId nextId = *mFilterFidsIt;
mFilterFidsIt++;
bool result = fetchFeatureWithId( nextId, feature );
if ( !result )
close();
return result;

if ( fetchFeatureWithId( nextId, feature ) )
return true;
}
close();
return false;
}

OGRFeatureH fet;
Expand Down

0 comments on commit 19ab72c

Please sign in to comment.