Skip to content

Commit

Permalink
QgsOgrProvider::open(): remove useless GDAL version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 24, 2021
1 parent 92709e8 commit 11e2ba8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -5347,11 +5347,9 @@ void QgsOgrProvider::open( OpenMode mode )
mValid = false;

// In the case where we deal with a shapefile, it is possible that it has
// pre-existing holes in the DBF (see #15407), so if using a GDAL version
// recent enough to have reliable packing, do a packing at the first edit
// pre-existing holes in the DBF (see #15407), so do a packing at the first edit
// action.
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) &&
atoi( GDALVersionInfo( "VERSION_NUM" ) ) >= GDAL_COMPUTE_VERSION( 2, 1, 2 ) )
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) )
{
mShapefileMayBeCorrupted = true;
}
Expand Down

0 comments on commit 11e2ba8

Please sign in to comment.