Guard use of null pointer

This commit is contained in:
Magne Sjaastad 2023-11-15 07:14:05 +01:00
parent 78dc6d1ecc
commit 401ce4bc18

View File

@ -270,7 +270,7 @@ RiuPlotWidget* RimWellAllocationOverTimePlot::doCreatePlotViewWidget( QWidget* m
// Remove event filter to disable unwanted highlighting on left click in plot.
plotWidget->removeEventFilter();
new RiuContextMenuLauncher( m_plotWidget, { "RicShowPlotDataFeature" } );
new RiuContextMenuLauncher( plotWidget, { "RicShowPlotDataFeature" } );
m_plotWidget = plotWidget;
RiuQwtPlotTools::enableDateBasedBottomXAxis( m_plotWidget->qwtPlot(),