Skip to content

Commit c71921a

Browse files
author
jef
committed
fix #2654
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13309 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8d843fe commit c71921a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3634,7 +3634,7 @@ void QgisApp::saveMapAsImage()
36343634
myOutputFileNameQString = myQFileDialog->selectedFiles().first();
36353635
}
36363636

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

src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void QgsMapCanvas::saveAsImage( QString theFileName, QPixmap * theQPixmap, QStri
443443
myHeader += QString::number( myRect.yMaximum() - ( mapUnitsPerPixel() / 2 ), 'g', 17 ) + "\r\n";
444444
QFileInfo myInfo = QFileInfo( theFileName );
445445
// allow dotted names
446-
QString myWorldFileName = myInfo.absolutePath() + QDir::separator() + myInfo.completeBaseName() + "." + theFormat + "w";
446+
QString myWorldFileName = myInfo.absolutePath() + myInfo.completeBaseName() + "." + theFormat + "w";
447447
QFile myWorldFile( myWorldFileName );
448448
if ( !myWorldFile.open( QIODevice::WriteOnly ) ) //don't use QIODevice::Text
449449
{

0 commit comments

Comments
 (0)