From e5086e905c8248309f4918e2d32cfa160f7e7156 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sun, 27 Apr 2003 20:44:23 +0000 Subject: Bug 195607 - Minimum width code gets it wrong. Patch by gerv; r,a=justdave. --- report.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'report.cgi') diff --git a/report.cgi b/report.cgi index c311cc797..d3cde688d 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); -- cgit v1.2.3-24-g4f1b