Skip to content

Commit 60c5104

Browse files
author
mhugent
committed
Fix output format for getPrint
git-svn-id: http://svn.osgeo.org/qgis/trunk@15085 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fa525c4 commit 60c5104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mapserver/qgshttprequesthandler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ void QgsHttpRequestHandler::sendHttpResponse( QByteArray* ba, const QString& for
5151

5252
QString QgsHttpRequestHandler::formatToMimeType( const QString& format ) const
5353
{
54-
if ( format.compare( "png", Qt::CaseInsensitive ) )
54+
if ( format.compare( "png", Qt::CaseInsensitive ) == 0 )
5555
{
5656
return "image/png";
5757
}
58-
else if ( format.compare( "jpg", Qt::CaseInsensitive ) )
58+
else if ( format.compare( "jpg", Qt::CaseInsensitive ) == 0 )
5959
{
6060
return "image/jpeg";
6161
}
62-
else if ( format.compare( "svg", Qt::CaseInsensitive ) )
62+
else if ( format.compare( "svg", Qt::CaseInsensitive ) == 0 )
6363
{
6464
return "image/svg+xml";
6565
}
66-
else if ( format.compare( "pdf", Qt::CaseInsensitive ) )
66+
else if ( format.compare( "pdf", Qt::CaseInsensitive ) == 0 )
6767
{
6868
return "application/pdf";
6969
}

0 commit comments

Comments
 (0)