From: Sven Schöling Date: Fri, 26 Feb 2016 09:19:28 +0000 (+0100) Subject: PDF::Table - einige undefined warnings gefixt X-Git-Tag: release-3.5.4~75^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dfa3f8457799035ff776600b4320507dbfe70a9e;p=kivitendo-erp.git PDF::Table - einige undefined warnings gefixt --- diff --git a/modules/override/PDF/Table.pm b/modules/override/PDF/Table.pm index 31045f034..853e0ee86 100755 --- a/modules/override/PDF/Table.pm +++ b/modules/override/PDF/Table.pm @@ -505,8 +505,12 @@ sub table $rows_height->[$row_idx] = $cell_font_size; } + if (!defined $data->[$row_idx][$column_idx]) { + $data->[$row_idx][$column_idx] = ' '; + } + # This should fix a bug with very long words like serial numbers etc. - if( $max_word_len > 0 ) + if( $max_word_len > 0 && $data->[$row_idx][$column_idx]) { $data->[$row_idx][$column_idx] =~ s#(\S{$max_word_len})(?=\S)#$1 #g; }