diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-05 13:10:14 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-05 13:10:14 -0500 |
commit | 7883b9fc0e77dd15fb8588909707798a7d6fc792 (patch) | |
tree | 55145b7543e086140afc28225818deafd8739e3a | |
parent | 940ac69408ea7a98795652b8fcb5c6045528ac2e (diff) | |
download | spreadsheet-parsexlsx-7883b9fc0e77dd15fb8588909707798a7d6fc792.tar.gz spreadsheet-parsexlsx-7883b9fc0e77dd15fb8588909707798a7d6fc792.zip |
need to apply the column width to all specified columns
-rw-r--r-- | lib/Spreadsheet/ParseXLSX.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm index 71af8fe..320a7b8 100644 --- a/lib/Spreadsheet/ParseXLSX.pm +++ b/lib/Spreadsheet/ParseXLSX.pm @@ -159,7 +159,9 @@ sub _parse_sheet { my $default_column_width = $format->att('baseColWidth') || 10; for my $col ($sheet_xml->find_nodes('//col')) { - $column_widths[$col->att('min') - 1] = $col->att('width'); + my $width = $col->att('width'); + $column_widths[$_ - 1] = $width + for $col->att('min')..$col->att('max'); } for my $row ($sheet_xml->find_nodes('//row')) { |