Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use completeBaseName for world file when exporting layouts (fix #34523)
  • Loading branch information
alexbruy authored and nyalldawson committed May 26, 2020
1 parent dc8c3d9 commit 8f21a6d
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 8f21a6d

Please sign in to comment.