mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2227 Well formatins: Clear well path if it does not have well picks
This commit is contained in:
@@ -277,6 +277,22 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||
pltPlot->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
bool validWellPathChosen = false;
|
||||
std::vector<RimWellPath*> wellPaths;
|
||||
RimTools::wellPathWithFormations(&wellPaths);
|
||||
for (RimWellPath* wellPath : wellPaths)
|
||||
{
|
||||
if (wellPath == m_formationWellPath)
|
||||
{
|
||||
validWellPathChosen = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!validWellPathChosen)
|
||||
{
|
||||
m_formationWellPath = nullptr;
|
||||
}
|
||||
}
|
||||
else if (changedField == &m_formationCase)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user