Skip to content
Permalink
Browse files

Fix crash

  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent 8eb9448 commit c8b71ef2246ea9b5ec90f02b07c443a304856c24
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
@@ -426,6 +426,9 @@ bool QgsSingleBandPseudoColorRenderer::accept( QgsStyleEntityVisitorInterface *v

QList<QgsLayerTreeModelLegendNode *> QgsSingleBandPseudoColorRenderer::createLegendNodes( QgsLayerTreeLayer *nodeLayer )
{
if ( !mShader )
return QList<QgsLayerTreeModelLegendNode *>();

const QgsColorRampShader *rampShader = dynamic_cast<const QgsColorRampShader *>( mShader->rasterShaderFunction() );
if ( !rampShader )
return QList<QgsLayerTreeModelLegendNode *>();

0 comments on commit c8b71ef

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