Skip to content
Permalink
Browse files

Fix regression

  • Loading branch information
mhugent committed Jul 3, 2020
1 parent f3eaf33 commit 1fda61e8285857620b80f35de5515d7e9b82d9cb
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -560,6 +560,13 @@ QSizeF QgsSymbolLegendNode::drawSymbol( const QgsLegendSettings &settings, ItemC
double maxSymbolSize = settings.maxSymbolSize();
double minSymbolSize = settings.minSymbolSize();

if ( QgsMarkerSymbol *markerSymbol = dynamic_cast<QgsMarkerSymbol *>( s ) )
{
double size = markerSymbol->size( *context ) / context->scaleFactor();
height = size;
width = size;
}

std::unique_ptr<QgsSymbol> minMaxSizeSymbol( QgsSymbolLayerUtils::restrictedSizeSymbol( s, minSymbolSize, maxSymbolSize, context, width, height ) );
if ( minMaxSizeSymbol )
{

0 comments on commit 1fda61e

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