Skip to content
Permalink
Browse files

Fix more potential crashes in renderer widgets

  • Loading branch information
nyalldawson committed Oct 7, 2015
1 parent c6df096 commit 2c39a5bfe765ffcb0b12226f1166977e7a6a7602
@@ -133,7 +133,8 @@ QgsFeatureRendererV2* QgsHeatmapRendererWidget::renderer()
void QgsHeatmapRendererWidget::setMapCanvas( QgsMapCanvas* canvas )
{
QgsRendererV2Widget::setMapCanvas( canvas );
mRadiusUnitWidget->setMapCanvas( canvas );
if ( mRadiusUnitWidget )
mRadiusUnitWidget->setMapCanvas( canvas );
}

void QgsHeatmapRendererWidget::applyColorRamp()
@@ -114,7 +114,8 @@ QgsFeatureRendererV2* QgsInvertedPolygonRendererWidget::renderer()
void QgsInvertedPolygonRendererWidget::setMapCanvas( QgsMapCanvas* canvas )
{
QgsRendererV2Widget::setMapCanvas( canvas );
mEmbeddedRendererWidget->setMapCanvas( canvas );
if ( mEmbeddedRendererWidget )
mEmbeddedRendererWidget->setMapCanvas( canvas );
}

void QgsInvertedPolygonRendererWidget::on_mRendererComboBox_currentIndexChanged( int index )
@@ -171,8 +171,10 @@ QgsFeatureRendererV2* QgsPointDisplacementRendererWidget::renderer()
void QgsPointDisplacementRendererWidget::setMapCanvas( QgsMapCanvas* canvas )
{
QgsRendererV2Widget::setMapCanvas( canvas );
mDistanceUnitWidget->setMapCanvas( canvas );
mEmbeddedRendererWidget->setMapCanvas( canvas );
if ( mDistanceUnitWidget )
mDistanceUnitWidget->setMapCanvas( canvas );
if ( mEmbeddedRendererWidget )
mEmbeddedRendererWidget->setMapCanvas( canvas );
}

void QgsPointDisplacementRendererWidget::on_mLabelFieldComboBox_currentIndexChanged( const QString& text )
@@ -83,7 +83,8 @@ QgsFeatureRendererV2* QgsSingleSymbolRendererV2Widget::renderer()
void QgsSingleSymbolRendererV2Widget::setMapCanvas( QgsMapCanvas* canvas )
{
QgsRendererV2Widget::setMapCanvas( canvas );
mSelector->setMapCanvas( canvas );
if ( mSelector )
mSelector->setMapCanvas( canvas );
}

void QgsSingleSymbolRendererV2Widget::changeSingleSymbol()

0 comments on commit 2c39a5b

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