Skip to content
Permalink
Browse files

Fixes external layers

  • Loading branch information
pblottiere committed Mar 27, 2019
1 parent 09e9df1 commit f9981ac8d9e903a19328457a8b264c8bf8292aec
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/server/services/wms/qgswmsparameters.cpp
@@ -1534,10 +1534,12 @@ namespace QgsWms

QList<QgsWmsParametersExternalLayer> QgsWmsParameters::externalLayersParameters() const
{
auto notExternalLayer = []( const QString & name ) { return ! QgsWmsParameters::isExternalLayer( name ); };

QList<QgsWmsParametersExternalLayer> externalLayers;

QStringList layers = allLayersNickname();
QStringList::const_iterator rit = std::remove_if( layers.begin(), layers.end(), QgsWmsParameters::isExternalLayer );
QStringList::const_iterator rit = std::remove_if( layers.begin(), layers.end(), notExternalLayer );

for ( QStringList::const_iterator it = layers.begin(); it != rit; ++it )
{

0 comments on commit f9981ac

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