mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06: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:
@@ -165,18 +165,10 @@ RimWellPath::~RimWellPath()
|
||||
delete file;
|
||||
}
|
||||
|
||||
RimProject* project;
|
||||
firstAncestorOrThisOfType( project );
|
||||
if ( project )
|
||||
RimWellLogPlotCollection* plotCollection = RimMainPlotCollection::current()->wellLogPlotCollection();
|
||||
if ( plotCollection )
|
||||
{
|
||||
if ( project->mainPlotCollection() )
|
||||
{
|
||||
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
|
||||
if ( plotCollection )
|
||||
{
|
||||
plotCollection->removeExtractors( m_wellPathGeometry.p() );
|
||||
}
|
||||
}
|
||||
plotCollection->removeExtractors( m_wellPathGeometry.p() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user