Merge pull request #8888 from OPM/8887-fix-reorder-capability

Fix reorder capability
This commit is contained in:
Magne Sjaastad
2022-05-06 10:52:08 +02:00
committed by GitHub
parent 64c4adf5f0
commit 74075cc9ab
23 changed files with 92 additions and 69 deletions

View File

@@ -82,7 +82,7 @@ std::vector<RimWellPathAttribute*> RimWellPathAttributeCollection::attributes()
//--------------------------------------------------------------------------------------------------
void RimWellPathAttributeCollection::insertAttribute( RimWellPathAttribute* insertBefore, RimWellPathAttribute* attribute )
{
size_t index = m_attributes.index( insertBefore );
size_t index = m_attributes.indexOf( insertBefore );
if ( index < m_attributes.size() )
m_attributes.insert( index, attribute );
else

View File

@@ -375,7 +375,7 @@ std::pair<RimWellPathTarget*, RimWellPathTarget*>
//--------------------------------------------------------------------------------------------------
void RimWellPathGeometryDef::insertTarget( const RimWellPathTarget* targetToInsertBefore, RimWellPathTarget* targetToInsert )
{
size_t index = m_wellTargets.index( targetToInsertBefore );
size_t index = m_wellTargets.indexOf( targetToInsertBefore );
if ( index < m_wellTargets.size() )
m_wellTargets.insert( index, targetToInsert );
else