mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix dangling references to annotations from fracture model after save.
This commit is contained in:
parent
bcc35ee82e
commit
34c1ac35e5
@ -207,8 +207,6 @@ RimFractureModel::RimFractureModel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFractureModel::~RimFractureModel()
|
||||
{
|
||||
clearBarrierAnnotation();
|
||||
|
||||
RimWellPath* wellPath = m_thicknessDirectionWellPath.value();
|
||||
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
|
||||
|
||||
@ -715,7 +713,10 @@ void RimFractureModel::clearBarrierAnnotation()
|
||||
}
|
||||
|
||||
RimAnnotationCollectionBase* coll = annotationCollection();
|
||||
coll->onAnnotationDeleted();
|
||||
if ( coll )
|
||||
{
|
||||
coll->onAnnotationDeleted();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user