Skip to content
Permalink
Browse files

[BUGFIX] Filter Legend By Map Content doesn't maintain point displace…

…ment legend

Fixed #11572
Needs to be backported and adapted to version 2.14
  • Loading branch information
rldhont committed Nov 29, 2016
1 parent 61b599e commit 4d71cf968c4608359514637ceabcf4f3dcfb09ce
@@ -268,6 +268,13 @@ QgsSymbolList QgsPointDistanceRenderer::originalSymbolsForFeature( QgsFeature& f
return mRenderer->originalSymbolsForFeature( feat, context );
}

QSet< QString > QgsPointDistanceRenderer::legendKeysForFeature( QgsFeature& feat, QgsRenderContext& context )
{
if ( !mRenderer )
return QSet< QString >() << QString();
return mRenderer->legendKeysForFeature( feat, context );
}

bool QgsPointDistanceRenderer::willRenderFeature( QgsFeature& feat, QgsRenderContext& context )
{
if ( !mRenderer )
@@ -84,6 +84,7 @@ class CORE_EXPORT QgsPointDistanceRenderer: public QgsFeatureRenderer
virtual QgsSymbol* originalSymbolForFeature( QgsFeature& feat, QgsRenderContext& context ) override;
virtual QgsSymbolList symbolsForFeature( QgsFeature& feat, QgsRenderContext& context ) override;
virtual QgsSymbolList originalSymbolsForFeature( QgsFeature& feat, QgsRenderContext& context ) override;
virtual QSet< QString > legendKeysForFeature( QgsFeature& feature, QgsRenderContext& context ) override;
virtual bool willRenderFeature( QgsFeature& feat, QgsRenderContext& context ) override;
virtual void startRender( QgsRenderContext& context, const QgsFields& fields ) override;
void stopRender( QgsRenderContext& context ) override;

0 comments on commit 4d71cf9

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