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
commit 6ae0c5e816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 )