Skip to content

Commit

Permalink
Fix worldfile skipping when saving map as TIFF image
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Feb 26, 2023
1 parent 99fc318 commit c8b6b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/maprenderer/qgsmaprenderertask.cpp
Expand Up @@ -404,7 +404,7 @@ bool QgsMapRendererTask::run()
// build the world file name
const QString outputSuffix = info.suffix();
bool skipWorldFile = false;
if ( outputSuffix == QLatin1String( "tif" ) || outputSuffix == QLatin1String( "tiff" ) )
if ( outputSuffix.compare( QLatin1String( "TIF" ), Qt::CaseInsensitive ) == 0 || outputSuffix.compare( QLatin1String( "TIFF" ), Qt::CaseInsensitive ) == 0 )
{
const gdal::dataset_unique_ptr outputDS( GDALOpen( mFileName.toUtf8().constData(), GA_Update ) );
if ( outputDS )
Expand Down

0 comments on commit c8b6b9f

Please sign in to comment.