Skip to content

Commit

Permalink
Fix crash in raster transparency widget on close
Browse files Browse the repository at this point in the history
mPixelSelectorTool is owned by canvas, which may be deleted
before the QgsRasterTransparencyWidget on QGIS exit
  • Loading branch information
nyalldawson committed Oct 5, 2016
1 parent 1e0e9c2 commit 3e1536f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gui/raster/qgsrastertransparencywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ QgsRasterTransparencyWidget::QgsRasterTransparencyWidget( QgsRasterLayer *layer,

QgsRasterTransparencyWidget::~QgsRasterTransparencyWidget()
{
if ( mPixelSelectorTool )
{
delete mPixelSelectorTool;
}
}

void QgsRasterTransparencyWidget::syncToLayer()
Expand Down

0 comments on commit 3e1536f

Please sign in to comment.