diff --git a/admin/reports.inc.php b/admin/reports.inc.php index f774969..1fbb50d 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -586,8 +586,10 @@ foreach($report_stock as $n=>$v) { * we can enforce margins) */ if($report['option']['fit_columns'] == 'yes') { // && $total_width > $label_stock['label_width']) { $static_width = $total_width - $scale_width; - $scale_factor = ($label_stock['label_width'] - $static_width) / $scale_width; -//echo "$scale_factor; + if($scale_width) + $scale_factor = ($label_stock['label_width'] - $static_width) / $scale_width; + else + $scale_factor = 1.0; } else { $scale_factor = 1.0; }