Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash using expression for heatmap renderer (fix #14127)
  • Loading branch information
nyalldawson committed Jan 19, 2016
1 parent 23fc3cf commit e2e3604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsheatmaprendererwidget.cpp
Expand Up @@ -34,7 +34,7 @@ QgsRendererV2Widget* QgsHeatmapRendererWidget::create( QgsVectorLayer* layer, Qg

static QgsExpressionContext _getExpressionContext( const void* context )
{
const QgsHeatmapRendererWidget* widget = ( const QgsHeatmapRendererWidget* ) context;
const QgsHeatmapRendererWidget* widget = reinterpret_cast< const QgsHeatmapRendererWidget* >( context );

QgsExpressionContext expContext;
expContext << QgsExpressionContextUtils::globalScope()
Expand Down Expand Up @@ -80,7 +80,7 @@ QgsHeatmapRendererWidget::QgsHeatmapRendererWidget( QgsVectorLayer* layer, QgsSt

setupUi( this );
mRadiusUnitWidget->setUnits( QgsSymbolV2::OutputUnitList() << QgsSymbolV2::MM << QgsSymbolV2::Pixel << QgsSymbolV2::MapUnit );
mWeightExpressionWidget->registerGetExpressionContextCallback( &_getExpressionContext, mLayer );
mWeightExpressionWidget->registerGetExpressionContextCallback( &_getExpressionContext, this );

if ( renderer )
{
Expand Down

0 comments on commit e2e3604

Please sign in to comment.