Skip to content

Commit

Permalink
use completeBaseName for world file when exporting layouts (fix #34523)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8f21a6d)
  • Loading branch information
alexbruy authored and nyalldawson committed Jun 19, 2020
1 parent 1506b51 commit 9094e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutexporter.cpp
Expand Up @@ -445,7 +445,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToImage( const QString
QFileInfo fi( outputFilePath );
// build the world file name
QString outputSuffix = fi.suffix();
QString worldFileName = fi.absolutePath() + '/' + fi.baseName() + '.'
QString worldFileName = fi.absolutePath() + '/' + fi.completeBaseName() + '.'
+ outputSuffix.at( 0 ) + outputSuffix.at( fi.suffix().size() - 1 ) + 'w';

writeWorldFile( worldFileName, a, b, c, d, e, f );
Expand Down

0 comments on commit 9094e8c

Please sign in to comment.