Skip to content
Permalink
Browse files

Fix output format for getPrint

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15085 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 26, 2011
1 parent ade8f60 commit 738de6626d67c21eea60352efa67489760bca150
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 738de66

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