Skip to content

Commit

Permalink
Fix output format for getPrint
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15085 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 26, 2011
1 parent ade8f60 commit 738de66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mapserver/qgshttprequesthandler.cpp
Expand Up @@ -51,19 +51,19 @@ void QgsHttpRequestHandler::sendHttpResponse( QByteArray* ba, const QString& for


QString QgsHttpRequestHandler::formatToMimeType( const QString& format ) const QString QgsHttpRequestHandler::formatToMimeType( const QString& format ) const
{ {
if ( format.compare( "png", Qt::CaseInsensitive ) ) if ( format.compare( "png", Qt::CaseInsensitive ) == 0 )
{ {
return "image/png"; return "image/png";
} }
else if ( format.compare( "jpg", Qt::CaseInsensitive ) ) else if ( format.compare( "jpg", Qt::CaseInsensitive ) == 0 )
{ {
return "image/jpeg"; return "image/jpeg";
} }
else if ( format.compare( "svg", Qt::CaseInsensitive ) ) else if ( format.compare( "svg", Qt::CaseInsensitive ) == 0 )
{ {
return "image/svg+xml"; return "image/svg+xml";
} }
else if ( format.compare( "pdf", Qt::CaseInsensitive ) ) else if ( format.compare( "pdf", Qt::CaseInsensitive ) == 0 )
{ {
return "application/pdf"; return "application/pdf";
} }
Expand Down

0 comments on commit 738de66

Please sign in to comment.