mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9413 Perforation: avoid overwriting diameter set when appending perforation
Fixes #9413.
This commit is contained in:
parent
e8f5806e55
commit
e7ec977c13
@ -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 );
|
||||
|
||||
|
@ -57,6 +57,7 @@ void RicNewPerforationIntervalFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
RimPerforationInterval* perforationInterval = new RimPerforationInterval;
|
||||
perforationInterval->setStartAndEndMD( wellPath->uniqueStartMD(), wellPath->uniqueEndMD() );
|
||||
perforationInterval->setUnitSystemSpecificDefaults();
|
||||
|
||||
perforationCollection->appendPerforation( perforationInterval );
|
||||
|
||||
|
@ -114,8 +114,6 @@ void RimPerforationCollection::appendPerforation( RimPerforationInterval* perfor
|
||||
|
||||
m_perforations.push_back( perforation );
|
||||
|
||||
perforation->setUnitSystemSpecificDefaults();
|
||||
|
||||
updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( perforation );
|
||||
|
||||
|
@ -835,6 +835,7 @@ void RimStimPlanModel::updatePerforationInterval()
|
||||
if ( !m_perforationInterval )
|
||||
{
|
||||
m_perforationInterval = new RimPerforationInterval;
|
||||
m_perforationInterval->setUnitSystemSpecificDefaults();
|
||||
m_thicknessDirectionWellPath->perforationIntervalCollection()->appendPerforation( m_perforationInterval );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user