Skip to content
Permalink
Browse files

also fix worldfile name when saving map canvas

  • Loading branch information
alexbruy authored and nyalldawson committed May 26, 2020
1 parent 8f21a6d commit 1a7f25c0f13261a5fe1395a34dc7ca373a7d77f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -1033,7 +1033,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 1a7f25c

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