From 49da63477993473327d8a70469f9c6a550b0add9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 1 May 2013 17:47:03 -0500 Subject: these don't always exist --- lib/Spreadsheet/Template/Generator/Parser/XLSX.pm | 4 ++-- 1 file 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'); -- cgit v1.2.3-54-g00ecf