Skip to content

Commit 4d00394

Browse files
committed
XLSX !protect check on write [ci skip]
1 parent a7405c4 commit 4d00394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bits/67_wsxml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ function write_ws_xml(idx/*:number*/, opts, wb/*:Workbook*/, rels)/*:string*/ {
577577

578578
/* sheetCalcPr */
579579

580-
if(ws['!protect'] != null) o[o.length] = write_ws_xml_protection(ws['!protect']);
580+
if(ws['!protect']) o[o.length] = write_ws_xml_protection(ws['!protect']);
581581

582582
/* protectedRanges */
583583
/* scenarios */

0 commit comments

Comments
 (0)