Merge pull request #5241 from OPM/fix-crash-well-production-plots

Fix crash when creating prodution rate plot.
This commit is contained in:
Magne Sjaastad
2019-12-18 15:36:06 +01:00
committed by GitHub

View File

@@ -606,7 +606,10 @@ void RimSummaryPlot::updateAll()
//--------------------------------------------------------------------------------------------------
void RimSummaryPlot::updateLegend()
{
m_plotWidget->setLegendVisible( m_showPlotLegends && isMdiWindow() );
if ( m_plotWidget )
{
m_plotWidget->setLegendVisible( m_showPlotLegends && isMdiWindow() );
}
reattachAllCurves();
if ( m_plotWidget )