Skip to content
Permalink
Browse files

Follow up 1f02fd

  • Loading branch information
nyalldawson committed Aug 4, 2016
1 parent 1f02fd4 commit 19ab72c937a5efaa89de7220aaa91800dbc4e6ae
Showing with 6 additions and 10 deletions.
  1. +6 −10 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -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;

0 comments on commit 19ab72c

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