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:
Magne Sjaastad
2022-08-23 10:01:24 +02:00
parent 4d244bc848
commit c2ab9e6fe0
6 changed files with 29 additions and 11 deletions

View File

@@ -160,6 +160,8 @@ RimMainPlotCollection::~RimMainPlotCollection()
//--------------------------------------------------------------------------------------------------
RimMainPlotCollection* RimMainPlotCollection::current()
{
CVF_ASSERT( RimProject::current() );
return RimProject::current()->mainPlotCollection();
}