diff --git a/src/core/qgsrenderchecker.cpp b/src/core/qgsrenderchecker.cpp index bef8af75ae4..ab5e22bcd84 100644 --- a/src/core/qgsrenderchecker.cpp +++ b/src/core/qgsrenderchecker.cpp @@ -93,10 +93,10 @@ bool QgsRenderChecker::isKnownAnomaly( QString theDiffImageFile ) QString myAnomalyHash = imageToHash( controlImagePath() + mControlName + QDir::separator() + myFile ); QString myHashMessage = QString( - "Checking if anomaly %1 (hash %2)" ) + "Checking if anomaly %1 (hash %2)
" ) .arg( myFile ) .arg( myAnomalyHash ); - myHashMessage += QString( " matches %1 (hash %2)" ) + myHashMessage += QString( "  matches %1 (hash %2)" ) .arg( theDiffImageFile ) .arg( myImageHash ); //foo CDash @@ -246,8 +246,13 @@ bool QgsRenderChecker::compareImages( QString theTestName, mReport += "Actual Duration : " + QString::number( mElapsedTime ) + "ms
"; // limit image size in page to something reasonable - int imgWidth = qMin( myExpectedImage.width(), 400 ); - int imgHeight = myExpectedImage.height() * imgWidth / myExpectedImage.width(); + int imgWidth = 420; + int imgHeight = 280; + if ( ! myExpectedImage.isNull() ) + { + imgWidth = qMin( myExpectedImage.width(), imgWidth ); + imgHeight = myExpectedImage.height() * imgWidth / myExpectedImage.width(); + } QString myImagesString = "" "Test Result:Expected Result:Difference (all blue is good, any red is bad)\n" "