mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Regression Test: Do not access RimWellLogPlotCollection directly from desctructors
Regression tests are calling RimProject::reset(), and this function deletes the RimProject object.
This commit is contained in:
@@ -160,6 +160,8 @@ RimMainPlotCollection::~RimMainPlotCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimMainPlotCollection* RimMainPlotCollection::current()
|
||||
{
|
||||
CVF_ASSERT( RimProject::current() );
|
||||
|
||||
return RimProject::current()->mainPlotCollection();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user