Skip to content

Commit

Permalink
Fix crash if selecting a nonsense subrenderer for displacement renderer
Browse files Browse the repository at this point in the history
(cherry-picked from 6bfdafe)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent 1dca76e commit 14d47ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -88,7 +88,7 @@ QgsPointDisplacementRendererWidget::QgsPointDisplacementRendererWidget( QgsVecto
QStringList::const_iterator it = rendererList.constBegin();
for ( ; it != rendererList.constEnd(); ++it )
{
if ( *it != "pointDisplacement" )
if ( *it != "pointDisplacement" && *it != "heatmapRenderer" && *it != "invertedPolygonRenderer" )
{
QgsRendererV2AbstractMetadata* m = QgsRendererV2Registry::instance()->rendererMetadata( *it );
mRendererComboBox->addItem( m->icon(), m->visibleName(), *it );
Expand Down

0 comments on commit 14d47ab

Please sign in to comment.