Skip to content
Permalink
Browse files

fix warning

  • Loading branch information
jef-n committed Mar 20, 2019
1 parent 226e3d4 commit fcb572e64efe15f309a87b87027ae2c2fb2bf388
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/services/wms/qgswmsrenderer.cpp
@@ -2311,7 +2311,7 @@ namespace QgsWms
const QDomElement layerElem = layerList.at( i ).toElement();
const QString layerName = layerElem.attribute( QStringLiteral( "name" ) );

QgsMapLayer *layer;
QgsMapLayer *layer = nullptr;
for ( QgsMapLayer *l : layers )
{
if ( layerNickname( *l ).compare( layerName ) == 0 )
@@ -2320,7 +2320,7 @@ namespace QgsWms
}
}

if ( ! layer )
if ( !layer )
continue;

if ( layer->type() == QgsMapLayer::VectorLayer )

0 comments on commit fcb572e

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