Skip to content
Permalink
Browse files

Fix legend display of scaled sizes for QgsSingleSymbolRenderer

  • Loading branch information
nyalldawson committed Feb 14, 2017
1 parent 3371003 commit 90dd988d9d84d6338f66ffaa59762f04313d6721
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgssinglesymbolrenderer.cpp
@@ -306,7 +306,7 @@ QgsLegendSymbolListV2 QgsSingleSymbolRenderer::legendSymbolItemsV2() const
{
const QgsMarkerSymbol * symbol = static_cast<const QgsMarkerSymbol *>( mSymbol.get() );
QgsProperty sizeDD( symbol->dataDefinedSize() );
if ( sizeDD && sizeDD.isActive() && sizeDD.propertyType() == QgsProperty::ExpressionBasedProperty )
if ( sizeDD && sizeDD.isActive() )
{
if ( const QgsSizeScaleTransformer* sizeTransformer = dynamic_cast< const QgsSizeScaleTransformer* >( sizeDD.transformer() ) )
{

0 comments on commit 90dd988

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