mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3613 Fishbones : Crash when user defined locations is empty
This commit is contained in:
parent
2cb4a5cf6e
commit
5e15e1d8e6
@ -331,13 +331,13 @@ std::vector<double> RimFishbonesMultipleSubs::lateralLengths() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFishbonesMultipleSubs::geometryUpdated()
|
||||
{
|
||||
computeRotationAngles();
|
||||
computeSubLateralIndices();
|
||||
|
||||
RimFishbonesCollection* collection;
|
||||
this->firstAncestorOrThisOfTypeAsserted(collection);
|
||||
collection->recalculateStartMD();
|
||||
|
||||
computeRotationAngles();
|
||||
computeSubLateralIndices();
|
||||
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||
proj->reloadCompletionTypeResultsInAllViews();
|
||||
|
@ -329,7 +329,7 @@ void RimMultipleValveLocations::fieldChangedByUi(const caf::PdmFieldHandle* chan
|
||||
RimWellPathValve* valve = dynamic_cast<RimWellPathValve*>(parentCompletion);
|
||||
if (fishbones)
|
||||
{
|
||||
fishbones->geometryUpdated();
|
||||
fishbones->recomputeLateralLocations();
|
||||
}
|
||||
else if (valve)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user