]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 195607 - Minimum width code gets it wrong. Patch by gerv; r,a=justdave.
authorgerv%gerv.net <>
Sun, 27 Apr 2003 20:44:23 +0000 (20:44 +0000)
committergerv%gerv.net <>
Sun, 27 Apr 2003 20:44:23 +0000 (20:44 +0000)
report.cgi

index c311cc797961487fe6257bdfa178affa46fe35b5..d3cde688df9cddc7cee45649236a584df4be30c4 100755 (executable)
@@ -207,8 +207,8 @@ $vars->{'row_names'} = \@row_names;
 $vars->{'tbl_names'} = \@tbl_names;
 
 # Below a certain width, we don't see any bars, so there needs to be a minimum.
-if ($cgi->param('format') eq "bar") {
-    my $min_width = (scalar(@col_names) || 1) * 10;
+if ($width && $cgi->param('format') eq "bar") {
+    my $min_width = (scalar(@col_names) || 1) * 20;
 
     if (!$cgi->param('cumulate')) {
         $min_width *= (scalar(@row_names) || 1);