#1222 Interpolate category colors and assign well color based on sorted order

This commit is contained in:
Magne Sjaastad
2017-02-15 13:26:59 +01:00
parent 4fc0839a33
commit 9a7f187765
4 changed files with 59 additions and 20 deletions

View File

@@ -1125,14 +1125,16 @@ void RimEclipseView::syncronizeWellsWithResults()
// Set the new wells into the field.
this->wellCollection()->wells().insert(0, newWells);
// Make sure all the wells have their reservoirView ptr setup correctly
this->wellCollection()->setReservoirView(this);
// Sort wells before assigning colors, as the colors are distributed based on sorting
this->wellCollection()->sortWellsByName();
if (isAnyWellCreated)
{
this->wellCollection()->assignDefaultWellColors();
}
// Make sure all the wells have their reservoirView ptr setup correctly
this->wellCollection()->setReservoirView(this);
this->wellCollection()->sortWellsByName();
}
//--------------------------------------------------------------------------------------------------