mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-03 01:59:40 -05:00
Simplify access to RimMainPlotCollection
* Add current() to RimMainPlotCollection to avoid include of RimProject * Remove "segment" prefix * Reload data when RftCase changes
This commit is contained in:
@@ -249,14 +249,5 @@ void RicNewWellLogPlotFeatureImpl::updateAfterCreation( RimDepthTrackPlot* plot
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogPlotCollection* RicNewWellLogPlotFeatureImpl::wellLogPlotCollection()
|
||||
{
|
||||
RimProject* project = RimProject::current();
|
||||
CVF_ASSERT( project );
|
||||
|
||||
RimMainPlotCollection* mainPlotColl = project->mainPlotCollection();
|
||||
CVF_ASSERT( mainPlotColl );
|
||||
|
||||
RimWellLogPlotCollection* wellLogPlotColl = mainPlotColl->wellLogPlotCollection();
|
||||
CVF_ASSERT( wellLogPlotColl );
|
||||
|
||||
return mainPlotColl->wellLogPlotCollection();
|
||||
return RimMainPlotCollection::current()->wellLogPlotCollection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user