Skip to content

Commit e618f37

Browse files
committed
fix 0d69d4c
1 parent 5700520 commit e618f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ogr/qgsogrprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void QgsOgrProvider::setEncoding( const QString& e )
504504
{
505505
#if defined(OLCStringsAsUTF8)
506506
QSettings settings;
507-
if ( ( ogrDriverName != "ESRI Shapefile" || settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() ) && !OGR_L_TestCapability( ogrLayer, OLCStringsAsUTF8 ) )
507+
if ( ( ogrDriverName == "ESRI Shapefile" && settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() ) || !OGR_L_TestCapability( ogrLayer, OLCStringsAsUTF8 ) )
508508
{
509509
QgsVectorDataProvider::setEncoding( e );
510510
}

0 commit comments

Comments
 (0)