Added missing test for ternary saturation result

This commit is contained in:
Magne Sjaastad 2014-04-08 11:52:40 +02:00
parent b158c0da9d
commit b958d01540
2 changed files with 4 additions and 2 deletions

View File

@ -530,7 +530,8 @@ void RimReservoirView::createDisplayModel()
if (this->cellResult()->hasDynamicResult()
|| this->propertyFilterCollection()->hasActiveDynamicFilters()
|| this->wellCollection->hasVisibleWellPipes())
|| this->wellCollection->hasVisibleWellPipes()
|| this->cellResult()->isTernarySaturationSelected())
{
CVF_ASSERT(currentGridCellResults());

View File

@ -660,7 +660,8 @@ void RiuMainWindow::refreshAnimationActions()
{
if (app->activeReservoirView()->cellResult()->hasDynamicResult()
|| app->activeReservoirView()->propertyFilterCollection()->hasActiveDynamicFilters()
|| app->activeReservoirView()->wellCollection()->hasVisibleWellPipes())
|| app->activeReservoirView()->wellCollection()->hasVisibleWellPipes()
|| app->activeReservoirView()->cellResult()->isTernarySaturationSelected())
{
std::vector<QDateTime> timeStepDates = app->activeReservoirView()->currentGridCellResults()->cellResults()->timeStepDates(0);
bool showHoursAndMinutes = false;