From 392d31d235358c1e9f083719936715789a52adc6 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 1b7917b29..3160b29dd 100644 --- a/modules/override/PDF/Table.pm +++ b/modules/override/PDF/Table.pm @@ -491,8 +491,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