Skip to content

Commit 09ce1d3

Browse files
agiudiceandreanyalldawson
authored andcommittedFeb 26, 2023
Fix setting LZW when saving map as TIFF image
1 parent df84af9 commit 09ce1d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/maprenderer/qgsmaprenderertask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ bool QgsMapRendererTask::run()
385385
else if ( mFileFormat != QLatin1String( "PDF" ) )
386386
{
387387
QImageWriter writer( mFileName, mFileFormat.toLocal8Bit().data() );
388-
if ( mFileFormat == QLatin1String( "TIF" ) || mFileFormat == QLatin1String( "TIFF" ) )
388+
if ( mFileFormat.compare( QLatin1String( "TIF" ), Qt::CaseInsensitive ) == 0 || mFileFormat.compare( QLatin1String( "TIFF" ), Qt::CaseInsensitive ) == 0 )
389389
{
390390
// Enable LZW compression
391391
writer.setCompression( 1 );

0 commit comments

Comments
 (0)
Please sign in to comment.