PDF::Table: Zusätzliche header richtigrum anzeigen
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 25 Feb 2016 17:54:44 +0000 (18:54 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 3 Apr 2019 13:51:30 +0000 (15:51 +0200)
modules/override/PDF/Table.pm

index f318495..a805f77 100755 (executable)
@@ -614,11 +614,9 @@ sub table
 
             if( ref $header_props and $header_props->{'repeat'})
             {
-                for my $idx (0 .. $header_props->{num_header_rows} - 1) {
-                  unshift @$data,           [ @{ $header_rows[$idx]      } ];
-                  unshift @$row_col_widths, [ @{ $header_row_widths[$idx] } ];
-                  unshift @$rows_height,    $header_row_heights[$idx];
-                }
+                unshift @$data,           @header_rows;
+                unshift @$row_col_widths, @header_row_widths;
+                unshift @$rows_height,    @header_row_heights;
                 $remaining_header_rows = $header_props->{num_header_rows};
                 $first_row = 1;
             }