Skip to content

Commit

Permalink
Guard use of null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Nov 15, 2023
1 parent 78dc6d1 commit 401ce4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 401ce4b

Please sign in to comment.