Do not modify fault settings when preparing for regression test

This commit is contained in:
Magne Sjaastad 2015-12-11 10:45:48 +01:00
parent 6b070c6b12
commit 9c8a75a237

View File

@ -1659,6 +1659,10 @@ void RiaApplication::saveSnapshotForAllViews(const QString& snapshotFolderName)
clearViewsScheduledForUpdate();
//riv->updateCurrentTimeStepAndRedraw();
riv->createDisplayModelAndRedraw();
viewer->repaint();
QString fileName = cas->caseUserDescription() + "-" + riv->name();
fileName.replace(" ", "_");
@ -2258,19 +2262,6 @@ void RiaApplication::regressionTestConfigureProject()
// This size is set to match the regression test reference images
riv->viewer()->setFixedSize(1000, 745);
}
RimEclipseView* resvView = dynamic_cast<RimEclipseView*>(riv);
if (resvView)
{
resvView->faultCollection->setShowFaultsOutsideFilters(false);
caf::PdmUiFieldHandle* uiFieldHandle = resvView->faultResultSettings->showCustomFaultResult.uiCapability();
if (uiFieldHandle)
{
uiFieldHandle->setValueFromUi(false);
}
}
}
}
}