Skip to content

Commit 4a60e18

Browse files
committedJun 7, 2019
Fix missing mapserver legends in some circumstances
1 parent 75e2252 commit 4a60e18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/providers/arcgisrest/qgsamsprovider.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ void QgsAmsLegendFetcher::handleFinished()
108108
{
109109
QVariantMap queryResultMap = result.toMap();
110110
QString layerId = queryResultMap[QStringLiteral( "layerId" )].toString();
111-
if ( layerId != dataSource.param( QStringLiteral( "layer" ) ) && !mProvider->subLayers().contains( layerId ) )
111+
if ( !dataSource.param( QStringLiteral( "layer" ) ).isNull()
112+
&& layerId != dataSource.param( QStringLiteral( "layer" ) )
113+
&& !mProvider->subLayers().contains( layerId ) )
112114
{
113115
continue;
114116
}

0 commit comments

Comments
 (0)
Please sign in to comment.