mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[legends] Fix missing symbols for inverted polygon layers when using
filter by map content Fixes #22718
This commit is contained in:
parent
ff4f32db0d
commit
abc9f47ca4
@ -86,6 +86,8 @@ Features collected during renderFeature() are rendered using the embedded featur
|
||||
|
||||
virtual QgsSymbolList originalSymbolsForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
|
||||
|
||||
virtual QSet< QString > legendKeysForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
|
||||
|
||||
virtual QgsLegendSymbolList legendSymbolItems() const;
|
||||
|
||||
virtual bool willRenderFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
|
||||
|
@ -465,6 +465,13 @@ QgsSymbolList QgsInvertedPolygonRenderer::originalSymbolsForFeature( const QgsFe
|
||||
return mSubRenderer->originalSymbolsForFeature( feature, context );
|
||||
}
|
||||
|
||||
QSet<QString> QgsInvertedPolygonRenderer::legendKeysForFeature( const QgsFeature &feature, QgsRenderContext &context ) const
|
||||
{
|
||||
if ( !mSubRenderer )
|
||||
return QSet<QString>();
|
||||
return mSubRenderer->legendKeysForFeature( feature, context );
|
||||
}
|
||||
|
||||
QgsSymbolList QgsInvertedPolygonRenderer::symbols( QgsRenderContext &context ) const
|
||||
{
|
||||
if ( !mSubRenderer )
|
||||
|
@ -84,6 +84,7 @@ class CORE_EXPORT QgsInvertedPolygonRenderer : public QgsFeatureRenderer
|
||||
QgsSymbol *originalSymbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
|
||||
QgsSymbolList symbolsForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
|
||||
QgsSymbolList originalSymbolsForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
|
||||
QSet< QString > legendKeysForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
|
||||
QgsLegendSymbolList legendSymbolItems() const override;
|
||||
bool willRenderFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user