Guard creation of view widget in RimMultiPlotWindow

This commit is contained in:
Gaute Lindkvist 2019-11-20 13:38:50 +01:00
parent 85d683634c
commit bf6da1c6c4

View File

@ -416,7 +416,10 @@ QImage RimMultiPlotWindow::snapshotWindowContent()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
QWidget* RimMultiPlotWindow::createViewWidget( QWidget* mainWindowParent ) QWidget* RimMultiPlotWindow::createViewWidget( QWidget* mainWindowParent )
{ {
m_viewer = new RiuMultiPlotWindow( this, mainWindowParent ); if ( m_viewer.isNull() )
{
m_viewer = new RiuMultiPlotWindow( this, mainWindowParent );
}
recreatePlotWidgets(); recreatePlotWidgets();
return m_viewer; return m_viewer;
} }