Skip to content
Permalink
Browse files

[ogr] Ignore request limit if unable to compile expression

Fix #15771
  • Loading branch information
m-kuhn committed Oct 31, 2016
1 parent 1b2158d commit e7333f68145f27a74aacd8f75939623e37fc4510
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -149,6 +149,9 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource* source, bool
OGR_L_SetAttributeFilter( ogrLayer, nullptr );
}

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

//start with first feature
rewind();
}

0 comments on commit e7333f6

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