#3613 Fishbones : Crash when user defined locations is empty

This commit is contained in:
Magne Sjaastad
2018-11-02 12:30:35 +01:00
parent 2cb4a5cf6e
commit 5e15e1d8e6
2 changed files with 4 additions and 4 deletions

View File

@@ -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();