Skip to content

Commit

Permalink
also fix worldfile name when saving map canvas
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a7f25c)
  • Loading branch information
alexbruy authored and nyalldawson committed Jun 19, 2020
1 parent 046f3ae commit 1506b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -807,7 +807,7 @@ void QgsMapCanvas::saveAsImage( const QString &fileName, QPixmap *theQPixmap, co

// build the world file name
QString outputSuffix = myInfo.suffix();
QString myWorldFileName = myInfo.absolutePath() + '/' + myInfo.baseName() + '.'
QString myWorldFileName = myInfo.absolutePath() + '/' + myInfo.completeBaseName() + '.'
+ outputSuffix.at( 0 ) + outputSuffix.at( myInfo.suffix().size() - 1 ) + 'w';
QFile myWorldFile( myWorldFileName );
if ( !myWorldFile.open( QIODevice::WriteOnly | QIODevice::Truncate ) ) //don't use QIODevice::Text
Expand Down

0 comments on commit 1506b51

Please sign in to comment.