Skip to content

Commit cc7afd0

Browse files
author
mhugent
committedOct 17, 2008
Fix for quantile generation bug. The problem was that feature cursor was not reset in select method of ogr provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9488 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ void QgsOgrProvider::select( QgsAttributeList fetchAttributes, QgsRect rect, boo
361361
OGR_L_SetSpatialFilter( ogrLayer, filter );
362362
OGR_G_DestroyGeometry( filter );
363363
}
364+
365+
//start with first feature
366+
OGR_L_ResetReading( ogrLayer );
364367
}
365368

366369

0 commit comments

Comments
 (0)
Please sign in to comment.