Skip to content
Permalink
Browse files

also fix worldfile name when saving map canvas

(cherry picked from commit 1a7f25c)
  • Loading branch information
alexbruy authored and nyalldawson committed May 26, 2020
1 parent 046f3ae commit 1506b516883529dfe73459899b9485f0563af9b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -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

0 comments on commit 1506b51

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