Skip to content
Permalink
Browse files
qgssymbollayer.cpp: fix cppcheck warning about possible null pointer …
…dereference
  • Loading branch information
rouault authored and m-kuhn committed Jun 14, 2021
1 parent e918d6e commit 78a6e32b9166bb77292f85616345901515fb2216
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/symbology/qgssymbollayer.cpp
@@ -122,14 +122,14 @@ void QgsSymbolLayer::setDataDefinedProperty( QgsSymbolLayer::Property key, const

void QgsSymbolLayer::startFeatureRender( const QgsFeature &feature, QgsRenderContext &context )
{
if ( subSymbol() )
subSymbol()->startFeatureRender( feature, context );
if ( QgsSymbol *lSubSymbol = subSymbol() )
lSubSymbol->startFeatureRender( feature, context );
}

void QgsSymbolLayer::stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context )
{
if ( subSymbol() )
subSymbol()->stopFeatureRender( feature, context );
if ( QgsSymbol *lSubSymbol = subSymbol() )
lSubSymbol->stopFeatureRender( feature, context );
}

QgsSymbol *QgsSymbolLayer::subSymbol()

0 comments on commit 78a6e32

Please sign in to comment.