Skip to content
Permalink
Browse files

Ensure start/stopFeatureRender is passed onto subsymbols

  • Loading branch information
nyalldawson committed Mar 31, 2021
1 parent 718a0ee commit f6b471762c0fea79f54b889c601e1b50a5ada607
Showing with 8 additions and 4 deletions.
  1. +2 −0 src/core/symbology/qgssymbol.h
  2. +6 −4 src/core/symbology/qgssymbollayer.cpp
@@ -767,6 +767,8 @@ class CORE_EXPORT QgsSymbol
*/
void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context, int layer = -1 );

friend class QgsSymbolLayer;

Q_DISABLE_COPY( QgsSymbol )

};
@@ -118,14 +118,16 @@ void QgsSymbolLayer::setDataDefinedProperty( QgsSymbolLayer::Property key, const
dataDefinedProperties().setProperty( key, property );
}

void QgsSymbolLayer::startFeatureRender( const QgsFeature &, QgsRenderContext & )
void QgsSymbolLayer::startFeatureRender( const QgsFeature &feature, QgsRenderContext &context )
{

if ( subSymbol() )
subSymbol()->startFeatureRender( feature, context );
}

void QgsSymbolLayer::stopFeatureRender( const QgsFeature &, QgsRenderContext & )
void QgsSymbolLayer::stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context )
{

if ( subSymbol() )
subSymbol()->stopFeatureRender( feature, context );
}

bool QgsSymbolLayer::writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift ) const

0 comments on commit f6b4717

Please sign in to comment.