Fixed simulation well pipe visibility error introduced in 707e8c68ab

This commit is contained in:
Jacob Støren 2015-12-10 14:11:07 +01:00
parent b9318376cc
commit 179f0c906b

View File

@ -1108,10 +1108,9 @@ void RimEclipseView::syncronizeWellsWithResults()
{
well = new RimEclipseWell;
well->name = wellResults[wIdx]->m_wellName;
}
newWells.push_back(well);
well->setWellIndex(wIdx);
well->setWellResults(wellResults[wIdx].p());
}
@ -1140,6 +1139,13 @@ void RimEclipseView::syncronizeWellsWithResults()
}
this->wellCollection()->sortWellsByName();
for (size_t wIdx = 0; wIdx < this->wellCollection()->wells().size(); ++wIdx)
{
this->wellCollection()->wells()[wIdx]->setWellIndex(wIdx);
}
}
//--------------------------------------------------------------------------------------------------