Skip to content

Commit

Permalink
Find more available encodings for the dxf exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty authored and nyalldawson committed Sep 9, 2022
1 parent 8b59def commit f8b847c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -2193,7 +2193,7 @@ QStringList QgsDxfExport::encodings()
for ( const QByteArray &codec : codecs )
{
int i;
for ( i = 0; i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) && strcmp( codec.data(), DXF_ENCODINGS[i][1] ) != 0; ++i )
for ( i = 0; i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) && strcasecmp( codec.data(), DXF_ENCODINGS[i][1] ) != 0; ++i )
;

if ( i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) )
Expand Down

0 comments on commit f8b847c

Please sign in to comment.