diff options
Diffstat (limited to 'lib/Spreadsheet/ParseXLSX.pm')
-rw-r--r-- | lib/Spreadsheet/ParseXLSX.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm index 7b672fb..6d2f232 100644 --- a/lib/Spreadsheet/ParseXLSX.pm +++ b/lib/Spreadsheet/ParseXLSX.pm @@ -240,6 +240,8 @@ sub _parse_themes { my $self = shift; my ($themes) = @_; + return {} unless $themes; + my @color = map { $_->name eq 'a:sysClr' ? $_->att('lastClr') : $_->att('val') } $themes->find_nodes('//a:clrScheme/*/*'); |