Commit e5086e90 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 195607 - Minimum width code gets it wrong. Patch by gerv; r,a=justdave.

parent 61fa0b00
...@@ -207,8 +207,8 @@ $vars->{'row_names'} = \@row_names; ...@@ -207,8 +207,8 @@ $vars->{'row_names'} = \@row_names;
$vars->{'tbl_names'} = \@tbl_names; $vars->{'tbl_names'} = \@tbl_names;
# Below a certain width, we don't see any bars, so there needs to be a minimum. # Below a certain width, we don't see any bars, so there needs to be a minimum.
if ($cgi->param('format') eq "bar") { if ($width && $cgi->param('format') eq "bar") {
my $min_width = (scalar(@col_names) || 1) * 10; my $min_width = (scalar(@col_names) || 1) * 20;
if (!$cgi->param('cumulate')) { if (!$cgi->param('cumulate')) {
$min_width *= (scalar(@row_names) || 1); $min_width *= (scalar(@row_names) || 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment