Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix regression
  • Loading branch information
mhugent committed Jul 3, 2020
1 parent f3eaf33 commit 1fda61e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 1fda61e

Please sign in to comment.