From dfa3f8457799035ff776600b4320507dbfe70a9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 26 Feb 2016 10:19:28 +0100 Subject: [PATCH] PDF::Table - einige undefined warnings gefixt --- modules/override/PDF/Table.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.20.1