Skip to content
Permalink
Browse files

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 8f21a6d2f3d288cb7091ed2098a490e663405cf0
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 8f21a6d

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