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

(cherry-picked from 3e1536f)
  • Loading branch information
nyalldawson committed Oct 6, 2016
1 parent d71523d commit 7c4aa12
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 7c4aa12

Please sign in to comment.