diff --git a/src/DrawResources/TestCommands.tcl b/src/DrawResources/TestCommands.tcl
index 1f800a9e95..f0d13c8717 100644
--- a/src/DrawResources/TestCommands.tcl
+++ b/src/DrawResources/TestCommands.tcl
@@ -2176,8 +2176,9 @@ proc _log_html_diff {file log dir1 dir2 highlight_percent} {
# note: special handler for the case if test grid directoried are compared directly
set gridpath ""
}
- set img1 "
"
- set img2 "
"
+ set aCaseName [lindex $case end]
+ set img1 "
"
+ set img2 "
"
set difffile [_diff_img_name $dir1 $dir2 $gridpath $img]
if { [file exists $difffile] } {