#2195 Final fix of missing connections in high level grids, if connections in lower levels exist.

This commit is contained in:
Jacob Støren
2017-12-04 16:37:53 +01:00
parent fcd9d0f3e6
commit 1ec6d77ff9
2 changed files with 100 additions and 35 deletions

View File

@@ -381,9 +381,12 @@ RigWellResultPoint RigWellResultFrame::wellHeadOrStartCell() const
{
if (m_wellHead.isCell()) return m_wellHead;
if (m_wellResultBranches.size() && m_wellResultBranches.front().m_branchResultPoints.size() )
for ( const RigWellResultBranch& resBranch : m_wellResultBranches )
{
return m_wellResultBranches.front().m_branchResultPoints.front();
for ( const RigWellResultPoint& wrp: resBranch.m_branchResultPoints )
{
if ( wrp.isCell() ) return wrp;
}
}
return m_wellHead; // Nothing else to do