summaryrefslogtreecommitdiffstats
path: root/lib/Spreadsheet/Template/Generator/Parser/XLSX.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Spreadsheet/Template/Generator/Parser/XLSX.pm')
-rw-r--r--lib/Spreadsheet/Template/Generator/Parser/XLSX.pm4
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');