X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/d5440cc6f9cc5b2942458ce7480526e2b90b17a4..28d69bb85e934088a56e6e8458cd08d3794e1f8b:/SL/ReportGenerator.pm?ds=inline diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index 441eb159d..6b9990180 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -564,8 +564,8 @@ sub generate_pdf_content { my $font_height = $font_size + 2 * $padding; my $title_font_height = $font_size + 2 * $padding; - my $header_height = 2 * $title_font_height if ($opts->{title}); - my $footer_height = 2 * $font_height if ($pdfopts->{number}); + my $header_height = $opts->{title} ? 2 * $title_font_height : undef; + my $footer_height = $pdfopts->{number} ? 2 * $font_height : undef; my $top_text_height = 0;