Skip to content

Commit

Permalink
ogr provider: fix redraw after attribute table update
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15521 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 16, 2011
1 parent 5f9a3da commit a5d73f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -505,6 +505,8 @@ bool QgsOgrProvider::nextFeature( QgsFeature& feature )
OGRFeatureH fet;
QgsRectangle selectionRect;

setRelevantFields( mFetchGeom, mAttributesToFetch );

while (( fet = OGR_L_GetNextFeature( ogrLayer ) ) != NULL )
{
// skip features without geometry
Expand Down Expand Up @@ -631,8 +633,6 @@ void QgsOgrProvider::select( QgsAttributeList fetchAttributes, QgsRectangle rect
OGR_G_DestroyGeometry( filter );
}

setRelevantFields( fetchGeometry, fetchAttributes );

//start with first feature
OGR_L_ResetReading( ogrLayer );
}
Expand Down

0 comments on commit a5d73f9

Please sign in to comment.