Fix layertitle string comparison

This commit is contained in:
Marco Hugentobler 2014-06-16 09:11:39 +02:00
parent 619e681c0c
commit 47cf096e25

View File

@ -768,7 +768,7 @@ void QgsWMSServer::legendParameters( double mmToPixelFactor, double fontOversamp
QMap<QString, QString>::const_iterator layerTitleIt = mParameters.find( "LAYERTITLE" );
if ( layerTitleIt != mParameters.constEnd() )
{
mDrawLegendLayerLabel = layerTitleIt.value().compare( "TRUE", Qt::CaseInsensitive );
mDrawLegendLayerLabel = ( layerTitleIt.value().compare( "TRUE", Qt::CaseInsensitive ) == 0 );
}
else
{