summaryrefslogtreecommitdiffstats
path: root/lib/Spreadsheet/ParseXLSX.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Spreadsheet/ParseXLSX.pm')
-rw-r--r--lib/Spreadsheet/ParseXLSX.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm
index 77e83e7..d20d734 100644
--- a/lib/Spreadsheet/ParseXLSX.pm
+++ b/lib/Spreadsheet/ParseXLSX.pm
@@ -513,7 +513,7 @@ sub _parse_styles {
Font => $font[$_->att('fontId')],
FmtIdx => 0+$_->att('numFmtId'),
- Lock => $protection
+ Lock => $protection && defined $protection->att('locked')
? $protection->att('locked')
: 1,
Hidden => $protection