Revert "Remove duplicated check"

This reverts commit 9a4cecc5f7e8329f1a09e3b9eeccbd764bb33f40.
The check was not duplicated, I just misread it (Oops, sorry)
This commit is contained in:
Sandro Santilli 2015-02-19 10:51:37 +01:00
parent 9a4cecc5f7
commit 53572639ec

View File

@ -248,7 +248,19 @@ bool QgsRenderChecker::compareImages( QString theTestName,
"Image File not set.</td></tr></table>\n";
return false;
}
mRenderedImageFile = theRenderedImageFile;
if ( ! theRenderedImageFile.isEmpty() )
{
mRenderedImageFile = theRenderedImageFile;
}
if ( mRenderedImageFile.isEmpty() )
{
qDebug( "QgsRenderChecker::runTest failed - Rendered Image File not set." );
mReport = "<table>"
"<tr><td>Test Result:</td><td>Expected Result:</td></tr>\n"
"<tr><td>Nothing rendered</td>\n<td>Failed because Rendered "
"Image File not set.</td></tr></table>\n";
return false;
}
//
// Load /create the images
//