File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ bool QgsRenderChecker::isKnownAnomaly( QString theDiffImageFile )
93
93
QString myAnomalyHash = imageToHash ( controlImagePath () + mControlName
94
94
+ QDir::separator () + myFile );
95
95
QString myHashMessage = QString (
96
- " Checking if anomaly %1 (hash %2)" )
96
+ " Checking if anomaly %1 (hash %2)<br> " )
97
97
.arg ( myFile )
98
98
.arg ( myAnomalyHash );
99
- myHashMessage += QString ( " matches %1 (hash %2)" )
99
+ myHashMessage += QString ( " matches %1 (hash %2)" )
100
100
.arg ( theDiffImageFile )
101
101
.arg ( myImageHash );
102
102
// foo CDash
@@ -246,8 +246,13 @@ bool QgsRenderChecker::compareImages( QString theTestName,
246
246
mReport += " Actual Duration : " + QString::number ( mElapsedTime ) + " ms<br>" ;
247
247
248
248
// limit image size in page to something reasonable
249
- int imgWidth = qMin ( myExpectedImage.width (), 400 );
250
- int imgHeight = myExpectedImage.height () * imgWidth / myExpectedImage.width ();
249
+ int imgWidth = 420 ;
250
+ int imgHeight = 280 ;
251
+ if ( ! myExpectedImage.isNull () )
252
+ {
253
+ imgWidth = qMin ( myExpectedImage.width (), imgWidth );
254
+ imgHeight = myExpectedImage.height () * imgWidth / myExpectedImage.width ();
255
+ }
251
256
QString myImagesString = " </td></tr>"
252
257
" <tr><td>Test Result:</td><td>Expected Result:</td><td>Difference (all blue is good, any red is bad)</td></tr>\n "
253
258
" <tr><td><img width=" + QString::number ( imgWidth ) +
You can’t perform that action at this time.
0 commit comments