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 committed 2022-08-24 08:58:03 +02:00
1 parent 4d244bc848
commit c2ab9e6fe0
6 files changed
+29 -11

No files matched your search

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