mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Follow up 1f02fd
This commit is contained in:
parent
1f02fd491d
commit
19ab72c937
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user