diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index 5236a50059..65b0a22569 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -488,7 +488,11 @@ void RimEclipseView::updateCurrentTimeStep() std::vector geometriesToRecolor; - if (this->propertyFilterCollection()->hasActiveFilters()) + if (this->viewController() && this->viewController()->isVisibleCellsOveridden()) + { + geometriesToRecolor.push_back(OVERRIDDEN_CELL_VISIBILITY); + } + else if (this->propertyFilterCollection()->hasActiveFilters()) { cvf::ref frameParts = new cvf::ModelBasicList; @@ -581,11 +585,7 @@ void RimEclipseView::updateCurrentTimeStep() geometriesToRecolor.push_back(RANGE_FILTERED); geometriesToRecolor.push_back(RANGE_FILTERED_WELL_CELLS); } - else if (this->viewController() && this->viewController()->isVisibleCellsOveridden()) - { - geometriesToRecolor.push_back(OVERRIDDEN_CELL_VISIBILITY); - } - else + else { geometriesToRecolor.push_back(ACTIVE); geometriesToRecolor.push_back(ALL_WELL_CELLS); @@ -1321,7 +1321,6 @@ std::vector RimEclipseView::visibleFaultGeometryTypes() const std::vector faultParts; if (this->viewController() && this->viewController()->isVisibleCellsOveridden()) { - faultParts.push_back(OVERRIDDEN_CELL_VISIBILITY); if (this->faultCollection()->showFaultsOutsideFilters()) { faultParts.push_back(ACTIVE); @@ -1332,6 +1331,10 @@ std::vector RimEclipseView::visibleFaultGeometryTypes() const faultParts.push_back(INACTIVE); } } + else + { + faultParts.push_back(OVERRIDDEN_CELL_VISIBILITY); + } } else if (this->propertyFilterCollection()->hasActiveFilters() && !faultCollection()->showFaultsOutsideFilters()) { @@ -1348,15 +1351,19 @@ std::vector RimEclipseView::visibleFaultGeometryTypes() const { faultParts.push_back(ACTIVE); faultParts.push_back(ALL_WELL_CELLS); + /// Why are these added ? JJS --> faultParts.push_back(RANGE_FILTERED); faultParts.push_back(RANGE_FILTERED_WELL_CELLS); faultParts.push_back(VISIBLE_WELL_CELLS_OUTSIDE_RANGE_FILTER); faultParts.push_back(VISIBLE_WELL_FENCE_CELLS_OUTSIDE_RANGE_FILTER); + /// <-- JJS if (this->showInactiveCells()) { faultParts.push_back(INACTIVE); + /// Why is this added ? JJS --> faultParts.push_back(RANGE_FILTERED_INACTIVE); + /// <-- JJS } } else if (this->rangeFilterCollection()->hasActiveFilters() && this->wellCollection()->hasVisibleWellCells())