Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c8b6b9f

Browse files
agiudiceandreagithub-actions[bot]
authored andcommittedFeb 26, 2023
Fix worldfile skipping when saving map as TIFF image
1 parent 99fc318 commit c8b6b9f

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
@@ -404,7 +404,7 @@ bool QgsMapRendererTask::run()
404404
// build the world file name
405405
const QString outputSuffix = info.suffix();
406406
bool skipWorldFile = false;
407-
if ( outputSuffix == QLatin1String( "tif" ) || outputSuffix == QLatin1String( "tiff" ) )
407+
if ( outputSuffix.compare( QLatin1String( "TIF" ), Qt::CaseInsensitive ) == 0 || outputSuffix.compare( QLatin1String( "TIFF" ), Qt::CaseInsensitive ) == 0 )
408408
{
409409
const gdal::dataset_unique_ptr outputDS( GDALOpen( mFileName.toUtf8().constData(), GA_Update ) );
410410
if ( outputDS )

0 commit comments

Comments
 (0)
Please sign in to comment.