Fix crash when creating prodution rate plot.

This commit is contained in:
Kristian Bendiksen 2019-12-17 13:05:10 +01:00
parent 91e8b1a839
commit 8f7a9dc3ce

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 )