Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and github-actions[bot] committed Feb 1, 2023
1 parent 79a0547 commit d73d2f6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -2168,15 +2168,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 d73d2f6

Please sign in to comment.