Skip to content
Permalink
Browse files

added missing variable definition

  • Loading branch information
Samweli authored and nyalldawson committed Jan 7, 2020
1 parent bc0b427 commit 0ea64e4204b2e8c7853ed0e8e394c4de12f5a338
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/providers/wms/qgswmsdataitems.cpp
@@ -251,6 +251,7 @@ QgsWMSLayerCollectionItem::QgsWMSLayerCollectionItem( QgsDataItem *parent, QStri
// Attention, the name may be empty
QgsDebugMsgLevel( QString::number( layerProperty.orderId ) + ' ' + layerProperty.name + ' ' + layerProperty.title, 2 );
QString pathName = layerProperty.name.isEmpty() ? QString::number( layerProperty.orderId ) : layerProperty.name;
QgsDataItem *layer;

if ( layerProperty.name.isEmpty() )
layer = new QgsWMSLayerCollectionItem( this, layerProperty.title, mPath + '/' + pathName, capabilitiesProperty, dataSourceUri, layerProperty );

0 comments on commit 0ea64e4

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