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)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 25 Feb 2016 17:54:44 +0000 (18:54 +0100)
modules/override/PDF/Table.pm

index fd83d04..7ebe16f 100644 (file)
@@ -584,11 +584,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};
             }
         }