qgis-server-getfeatureinfo-alias-empty.patch

Testing if alias value is not empty before setting attributeName in GetFeatureInfo - René-Luc ReLuc, 2012-04-13 03:08 AM

Download (1.04 KB)

View differences:

src/mapserver/qgswmsserver.cpp
1313 1313
      QMap<int, QString>::const_iterator aliasIt = aliasMap.find( it.key() );
1314 1314
      if ( aliasIt != aliasMap.constEnd() )
1315 1315
      {
1316
        attributeName = aliasIt.value();
1316
        QString aliasName = aliasIt.value();
1317
        if (aliasName != "")
1318
        {
1319
          attributeName = aliasName;
1320
        }
1317 1321
      }
1318 1322

  
1319 1323
      QDomElement attributeElement = infoDocument.createElement( "Attribute" );
1320
-