mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crashes when dropping analysis plots into Multiplots
This commit is contained in:
committed by
Magne Sjaastad
parent
ab3e43d8fb
commit
93baf776a1
@@ -1,6 +1,8 @@
|
||||
#include "RimPlot.h"
|
||||
|
||||
#include "RicfCommandObject.h"
|
||||
|
||||
#include "RimAbstractPlotCollection.h"
|
||||
#include "RimMultiPlot.h"
|
||||
#include "RimPlotCurve.h"
|
||||
#include "RimPlotWindow.h"
|
||||
@@ -124,7 +126,13 @@ void RimPlot::removeFromMdiAreaAndCollection()
|
||||
{
|
||||
revokeMdiWindowStatus();
|
||||
}
|
||||
doRemoveFromCollection();
|
||||
|
||||
RimAbstractPlotCollection* plotCollection = nullptr;
|
||||
this->firstAncestorOfType( plotCollection );
|
||||
if ( plotCollection )
|
||||
{
|
||||
plotCollection->removeRimPlot( this );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user