Skip to content
Permalink
Browse files

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

(cherry picked from commit 8f21a6d)
  • Loading branch information
alexbruy authored and nyalldawson committed May 26, 2020
1 parent 1506b51 commit 9094e8c9dd783d50bfec36f9c15a4053f5399a85
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layout/qgslayoutexporter.cpp
@@ -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 );

0 comments on commit 9094e8c

Please sign in to comment.
You can’t perform that action at this time.