diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-05-01 17:47:03 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-05-01 17:47:03 -0500 |
commit | 49da63477993473327d8a70469f9c6a550b0add9 (patch) | |
tree | d1e99057fbb340d923dc0e25a3119822e5ea88bc | |
parent | 2fda97fcadcf9bd9668192c9e3fffc39acd105bc (diff) | |
download | spreadsheet-template-49da63477993473327d8a70469f9c6a550b0add9.tar.gz spreadsheet-template-49da63477993473327d8a70469f9c6a550b0add9.zip |
these don't always exist
-rw-r--r-- | lib/Spreadsheet/Template/Generator/Parser/XLSX.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Spreadsheet/Template/Generator/Parser/XLSX.pm b/lib/Spreadsheet/Template/Generator/Parser/XLSX.pm index 0a043a1..33f4f27 100644 --- a/lib/Spreadsheet/Template/Generator/Parser/XLSX.pm +++ b/lib/Spreadsheet/Template/Generator/Parser/XLSX.pm @@ -50,8 +50,8 @@ sub _parse_cell_sizes { my @row_heights; my ($format) = $root->find_nodes('//sheetFormatPr'); - my $default_row_height = $format->att('defaultRowHeight'); - my $default_column_width = $format->att('baseColWidth'); + my $default_row_height = $format->att('defaultRowHeight') || 15; + my $default_column_width = $format->att('baseColWidth') || 10; for my $col ($root->find_nodes('//col')) { $column_widths[$col->att('min') - 1] = $col->att('width'); |