Mikolaj Zalewski : don't show 0-width bar bitmaps (needed by IE7)
Module: tools Branch: master Commit: 09ccd9192c31756b606c19136a0e445f3835c406 URL: http://source.winehq.org/git/tools.git/?a=commit;h=09ccd9192c31756b606c19136... Author: Mikolaj Zalewski <mikolajz(a)tygrys.dom> Date: Wed Jul 9 17:14:27 2008 +0200 don't show 0-width bar bitmaps (needed by IE7) --- php/index.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/php/index.php b/php/index.php index 561a089..379e10b 100644 --- a/php/index.php +++ b/php/index.php @@ -50,8 +50,10 @@ function draw_bar($tr, $err, $sum) } $miss_len = 300 - $tr_len - $err_len; echo '<td style="background-color: #D1DAF9">'; - echo "<img src=\"img/bar0.gif\" height=\"15\" width=\"$tr_len\">"; - echo "<img src=\"img/bar1.gif\" height=\"15\" width=\"$err_len\">"; + if ($tr_len > 0) + echo "<img src=\"img/bar0.gif\" height=\"15\" width=\"$tr_len\">"; + if ($err_len > 0) + echo "<img src=\"img/bar1.gif\" height=\"15\" width=\"$err_len\">"; // echo "<img src=\"img/bar6.gif\" height=\"15\" width=\"$miss_len\">"; echo "</td></tr>"; }
participants (1)
-
Alexandre Julliard