From 4d00394678fbc6928aa9a82f4aa882c7cb151ec0 Mon Sep 17 00:00:00 2001 From: Logan Houp Date: Thu, 4 Nov 2021 01:14:09 -0400 Subject: [PATCH] XLSX !protect check on write [ci skip] --- bits/67_wsxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/67_wsxml.js b/bits/67_wsxml.js index 23f8a3c..85abfad 100644 --- a/bits/67_wsxml.js +++ b/bits/67_wsxml.js @@ -577,7 +577,7 @@ function write_ws_xml(idx/*:number*/, opts, wb/*:Workbook*/, rels)/*:string*/ { /* sheetCalcPr */ - if(ws['!protect'] != null) o[o.length] = write_ws_xml_protection(ws['!protect']); + if(ws['!protect']) o[o.length] = write_ws_xml_protection(ws['!protect']); /* protectedRanges */ /* scenarios */