Guard use of null pointer

This commit is contained in:
Magne Sjaastad committed 2023-11-15 08:39:01 +01:00
1 parent 78dc6d1ecc
commit 401ce4bc18
1 file changed
+1 -1
@@ -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(),