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 7eccb43 commit c73a6e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gui/raster/qgsrastertransparencywidget.cpp
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 c73a6e0

Please sign in to comment.