Skip to content
Permalink
Browse files

Consider case where id is layer name

  • Loading branch information
mhugent committed Jan 5, 2019
1 parent e7c0f36 commit 9ed7b0df42d74e96e7bbdcece014f9c3a829d434
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -690,7 +690,11 @@ namespace QgsWms
if ( cLayer )
{
QString layerName = cLayer->shortName();
if ( layerName.isEmpty() )
if ( QgsServerProjectUtils::wmsUseLayerIds( *project ) )
{
layerName = cLayer->id();
}
else if ( layerName.isEmpty() )
{
layerName = cLayer->name();
}

0 comments on commit 9ed7b0d

Please sign in to comment.
You can’t perform that action at this time.