Update qgsogrprovider.cpp

This commit is contained in:
Alessandro Pasotti 2025-05-22 13:49:49 +02:00 committed by GitHub
parent 2a3475ac96
commit b7e6ad2c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -900,8 +900,6 @@ void QgsOgrProvider::loadFields()
// If subtype is JSON try to load a feature and check if it's
// really an object (rather than something else like an array)
// fallback to string.
// Note that homogeneous arrays of numbers and strings are already correctly
// identified by OGR so we don't need to check them here.
if ( ( ogrType == OFTString || ogrType == OFTWideString ) && ogrSubType == OFSTJSON )
{
QRecursiveMutex *layerMutex = nullptr;