From: gerv%gerv.net <> Date: Sun, 27 Apr 2003 20:44:23 +0000 (+0000) Subject: Bug 195607 - Minimum width code gets it wrong. Patch by gerv; r,a=justdave. X-Git-Tag: bugzilla-2.17.5~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5086e905c8248309f4918e2d32cfa160f7e7156;p=thirdparty%2Fbugzilla.git Bug 195607 - Minimum width code gets it wrong. Patch by gerv; r,a=justdave. --- diff --git a/report.cgi b/report.cgi index c311cc7979..d3cde688df 100755 --- a/report.cgi +++ b/report.cgi @@ -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);