Skip to content
Permalink
Browse files
Apply patch from ticket #5348 provided by René-Luc D'Hont
  • Loading branch information
mhugent committed Apr 13, 2012
1 parent f9e2df4 commit a5b3a49bca48b15abd433cfff74cc165f4bbc308
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/mapserver/qgswmsserver.cpp
@@ -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" );

0 comments on commit a5b3a49

Please sign in to comment.