diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-22 06:54:03 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-22 06:54:03 -0400 |
commit | 5339faa0bccf8a82d1e0eb806e81dc2175630fa8 (patch) | |
tree | 4ff60cb12fbaff986292a156f534d4a3677173f1 /lib/Spreadsheet | |
parent | 3437f97de3dc730d80d46bf8df1a640cfc24a232 (diff) | |
download | spreadsheet-parsexlsx-5339faa0bccf8a82d1e0eb806e81dc2175630fa8.tar.gz spreadsheet-parsexlsx-5339faa0bccf8a82d1e0eb806e81dc2175630fa8.zip |
patternType should default to 0 (vfilatov, #41)
Diffstat (limited to 'lib/Spreadsheet')
-rw-r--r-- | lib/Spreadsheet/ParseXLSX.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm index 2d46173..fda4742 100644 --- a/lib/Spreadsheet/ParseXLSX.pm +++ b/lib/Spreadsheet/ParseXLSX.pm @@ -645,8 +645,9 @@ sub _parse_styles { ); my @fills = map { + my $pattern_type = $_->att('patternType'); [ - $fill{$_->att('patternType')}, + ($pattern_type ? $fill{$pattern_type} : 0), $self->_color($workbook->{Color}, $_->first_child('s:fgColor'), 1), $self->_color($workbook->{Color}, $_->first_child('s:bgColor'), 1), ] |