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
  • Loading branch information
nyalldawson committed Sep 20, 2015
1 parent f16fe73 commit 6bfdafe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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 6bfdafe

Please sign in to comment.