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 */