Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Feb 1, 2023
1 parent aa033db commit 5e4d278
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -2175,15 +2175,9 @@ bool QgsOgrProvider::changeAttributeValues( const QgsChangedAttributesMap &attr_
// But this is undesirable in general, so don't do this when we know that
// we don't need to.
bool mayNeedResetReadingAfterGetFeature = true;
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) )
{
mayNeedResetReadingAfterGetFeature = false;
}
else if ( mGDALDriverName == QLatin1String( "GPKG" ) )
{
mayNeedResetReadingAfterGetFeature = false;
}
else if ( mGDALDriverName == QLatin1String( "CSV" ) )
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) ||
mGDALDriverName == QLatin1String( "GPKG" ) ||
mGDALDriverName == QLatin1String( "CSV" ) )
{
mayNeedResetReadingAfterGetFeature = false;
}
Expand Down

0 comments on commit 5e4d278

Please sign in to comment.