Skip to content
Permalink
Browse files

fix #2654

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13309 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 14, 2010
1 parent 8d843fe commit c71921af4233161c28a03bc870d2a8c9637de7e6
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -3634,7 +3634,7 @@ void QgisApp::saveMapAsImage()
myOutputFileNameQString = myQFileDialog->selectedFiles().first();
}

QString myFilterString = myQFileDialog->selectedFilter() + ";;";
QString myFilterString = myQFileDialog->selectedFilter();
QgsDebugMsg( "Selected filter: " + myFilterString );
QgsDebugMsg( "Image type to be passed to mapcanvas: " + myFilterMap[myFilterString] );

@@ -443,7 +443,7 @@ void QgsMapCanvas::saveAsImage( QString theFileName, QPixmap * theQPixmap, QStri
myHeader += QString::number( myRect.yMaximum() - ( mapUnitsPerPixel() / 2 ), 'g', 17 ) + "\r\n";
QFileInfo myInfo = QFileInfo( theFileName );
// allow dotted names
QString myWorldFileName = myInfo.absolutePath() + QDir::separator() + myInfo.completeBaseName() + "." + theFormat + "w";
QString myWorldFileName = myInfo.absolutePath() + myInfo.completeBaseName() + "." + theFormat + "w";
QFile myWorldFile( myWorldFileName );
if ( !myWorldFile.open( QIODevice::WriteOnly ) ) //don't use QIODevice::Text
{

0 comments on commit c71921a

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