mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix layertitle string comparison
This commit is contained in:
parent
619e681c0c
commit
47cf096e25
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user