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

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