Skip to content
Permalink
Browse files

fix warning

(cherry picked from commit fcb572e)
  • Loading branch information
jef-n committed Mar 20, 2019
1 parent 43fc565 commit 57df3b06e7cf87b9310551ca27f7df03a07c1830
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/services/wms/qgswmsrenderer.cpp
@@ -2303,7 +2303,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 )
@@ -2312,7 +2312,7 @@ namespace QgsWms
}
}

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

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

0 comments on commit 57df3b0

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