Fix crash during delete of multiplot

This commit is contained in:
Magne Sjaastad
2022-04-25 15:34:04 +02:00
parent 386ba1cbac
commit 73d598ee7e
4 changed files with 20 additions and 0 deletions

View File

@@ -492,6 +492,8 @@ bool RiuMultiPlotBook::showYAxis( int row, int column ) const
//--------------------------------------------------------------------------------------------------
void RiuMultiPlotBook::performUpdate( bool regeneratePages )
{
if ( !m_plotDefinition || !m_plotDefinition->isValid() ) return;
applyLook();
if ( regeneratePages || m_pages.size() == 0 )
{

View File

@@ -563,6 +563,9 @@ bool RiuMultiPlotPage::showYAxis( int row, int column ) const
//--------------------------------------------------------------------------------------------------
void RiuMultiPlotPage::performUpdate( RiaDefines::MultiPlotPageUpdateType whatToUpdate )
{
auto multiPlot = dynamic_cast<RimMultiPlot*>( m_plotDefinition.p() );
if ( !multiPlot || !multiPlot->isValid() ) return;
if ( whatToUpdate == RiaDefines::MultiPlotPageUpdateType::ALL )
{
applyLook();