use completeBaseName for world file when exporting layouts (fix #34523)

This commit is contained in:
Alexander Bruy 2020-05-26 16:51:12 +03:00 committed by Nyall Dawson
parent dc8c3d9141
commit 8f21a6d2f3

View File

@ -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 );