Skip to content
Permalink
Browse files

Fixes #36140

  • Loading branch information
uprel committed May 12, 2020
1 parent ceea4f2 commit 3f826b21afa506bc31aefc55bd2c0a2c42f29ee5
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/server/services/wms/qgswmsgetlegendgraphics.cpp
@@ -284,11 +284,13 @@ namespace QgsWms
legendNode->setUserLabel( QStringLiteral( " " ) );
}
}
else if ( !parameters.layerTitleAsBool() && model->layerLegendNodes( nodeLayer, true ).count() )
// rulelabel is not set or true
else if ( !parameters.layerTitleAsBool() )
{
for ( QgsLayerTreeModelLegendNode *legendNode : model->layerLegendNodes( nodeLayer ) )
{
if ( legendNode->isEmbeddedInParent() )
//clearing label when rulelabel is not set and only for single symbol
if ( legendNode->isEmbeddedInParent() && parameters.ruleLabel().isEmpty() )
legendNode->setEmbeddedInParent( false );
}
}
@@ -349,4 +351,3 @@ namespace QgsWms
return nullptr;
}
} // namespace QgsWms

0 comments on commit 3f826b2

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