Skip to content

Commit

Permalink
[ogr] Ignore request limit if unable to compile expression
Browse files Browse the repository at this point in the history
Fix #15771
  • Loading branch information
m-kuhn committed Oct 31, 2016
1 parent 1b2158d commit e7333f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/ogr/qgsogrfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource* source, bool
OGR_L_SetAttributeFilter( ogrLayer, nullptr );
}

if ( !mExpressionCompiled )
mRequest.setLimit( -1 );

//start with first feature
rewind();
}
Expand Down

0 comments on commit e7333f6

Please sign in to comment.