Skip to content
Permalink
Browse files

Fix output format for getPrint

git-svn-id: http://svn.osgeo.org/qgis/trunk@15085 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 26, 2011
1 parent fa525c4 commit 60c51049804c2e5748c3e6b9a259fc9075bd265d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/mapserver/qgshttprequesthandler.cpp
@@ -51,19 +51,19 @@ void QgsHttpRequestHandler::sendHttpResponse( QByteArray* ba, const QString& for

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

0 comments on commit 60c5104

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