Skip to content

Commit

Permalink
Fix layertitle string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 16, 2014
1 parent 619e681 commit 47cf096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapserver/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

3 comments on commit 47cf096

@luca76
Copy link
Contributor

@luca76 luca76 commented on 47cf096 Jun 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be on RULEITEM, too :-)

@mhugent
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean RULELABEL ?

@luca76
Copy link
Contributor

@luca76 luca76 commented on 47cf096 Jun 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, RULELABEL, sorry :-)

Please sign in to comment.