mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash during delete of multiplot
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user