Skip to content
Permalink
Browse files

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

…ment legend

Fixed #11572
Manually cherry-picked 4d71cf9
  • Loading branch information
rldhont committed Nov 30, 2016
1 parent 567abc1 commit 958355bc3c0e23f11ac22b2ed49f8c3bd3508546
@@ -329,6 +329,13 @@ QgsSymbolV2List QgsPointDisplacementRenderer::originalSymbolsForFeature( QgsFeat
return mRenderer->originalSymbolsForFeature( feat, context );
}

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

bool QgsPointDisplacementRenderer::willRenderFeature( QgsFeature& feat, QgsRenderContext& context )
{
if ( !mRenderer )
@@ -77,6 +77,10 @@ class CORE_EXPORT QgsPointDisplacementRenderer: public QgsFeatureRendererV2
@note available in python as originalSymbolsForFeature2
*/
virtual QgsSymbolV2List originalSymbolsForFeature( QgsFeature& feat, QgsRenderContext& context ) override;
/** Returns which legend keys match the feature
* @note added in QGIS 2.18.2
*/
virtual QSet< QString > legendKeysForFeature( QgsFeature& feature, QgsRenderContext& context ) override;
/** Proxy that will call this method on the embedded renderer.
@note available in python as willRenderFeature2
*/

0 comments on commit 958355b

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