Skip to content

Commit

Permalink
Apply patch from ticket #5348 provided by René-Luc D'Hont
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Apr 13, 2012
1 parent f9e2df4 commit a5b3a49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mapserver/qgswmsserver.cpp
Expand Up @@ -1317,7 +1317,11 @@ int QgsWMSServer::featureInfoFromVectorLayer( QgsVectorLayer* layer,
QMap<int, QString>::const_iterator aliasIt = aliasMap.find( it.key() );
if ( aliasIt != aliasMap.constEnd() )
{
attributeName = aliasIt.value();
QString aliasName = aliasIt.value();
if ( !aliasName.isEmpty() )
{
attributeName = aliasName;
}
}

QDomElement attributeElement = infoDocument.createElement( "Attribute" );
Expand Down

0 comments on commit a5b3a49

Please sign in to comment.