#5157 Regression Test : Some images get wrong size

This commit is contained in:
Magne Sjaastad
2019-12-03 10:39:19 +01:00
parent 1193a9c61e
commit ce94b6ff9e
2 changed files with 5 additions and 3 deletions

View File

@@ -203,11 +203,11 @@ void RiaRegressionTestRunner::runRegressionTest()
setDefaultFixedWindowSizeFor3dViews();
resizePlotWindows();
QString fullPathGeneratedFolder = testCaseFolder.absoluteFilePath( generatedFolderName );
RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( fullPathGeneratedFolder );
QApplication::processEvents();
resizePlotWindows();
RicSnapshotAllPlotsToFileFeature::exportSnapshotOfPlotsIntoFolder( fullPathGeneratedFolder );
app->closeProject();

View File

@@ -21,6 +21,7 @@
#include "RiaApplication.h"
#include "RiaBaseDefs.h"
#include "RiaPreferences.h"
#include "RiaRegressionTestRunner.h"
#include "RiaSummaryTools.h"
#include "RimEnsembleCurveSetCollection.h"
@@ -127,7 +128,8 @@ void RiuPlotMainWindow::initializeGuiNewProjectLoaded()
tileSubWindows();
}
if ( m_activePlotViewWindow && m_activePlotViewWindow->viewWidget() )
if ( m_activePlotViewWindow && m_activePlotViewWindow->viewWidget() &&
!RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
{
if ( m_activePlotViewWindow->mdiWindowGeometry().isMaximized )
{