#9413 Perforation: avoid overwriting diameter set when appending perforation

Fixes #9413.
This commit is contained in:
Kristian Bendiksen
2022-12-02 09:19:38 +01:00
committed by Magne Sjaastad
parent e8f5806e55
commit e7ec977c13
4 changed files with 3 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ void RicNewPerforationIntervalAtMeasuredDepthFeature::onActionTriggered( bool is
RimPerforationInterval* perforationInterval = new RimPerforationInterval;
double measuredDepth = wellPathSelItem->m_measuredDepth;
perforationInterval->setStartAndEndMD( measuredDepth, measuredDepth + 50 );
perforationInterval->setUnitSystemSpecificDefaults();
wellPath->perforationIntervalCollection()->appendPerforation( perforationInterval );

View File

@@ -57,6 +57,7 @@ void RicNewPerforationIntervalFeature::onActionTriggered( bool isChecked )
RimPerforationInterval* perforationInterval = new RimPerforationInterval;
perforationInterval->setStartAndEndMD( wellPath->uniqueStartMD(), wellPath->uniqueEndMD() );
perforationInterval->setUnitSystemSpecificDefaults();
perforationCollection->appendPerforation( perforationInterval );