Update 78_writebiff.js

fix(print): Excel crashes when printing XLS

fix provided by the SheetJSDev in https://github.com/SheetJS/sheetjs/issues/1967.
This commit is contained in:
Nabeel 2020-10-07 01:25:37 +05:00 committed by GitHub
parent d4cfadbbd7
commit b9323c5502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ function write_ws_biff8(idx/*:number*/, opts, wb/*:Workbook*/) {
}
var cname/*:string*/ = _sheet.CodeName || _sheet.name || s;
/* ... */
if(b8 && _WB.Views) write_biff_rec(ba, "Window2", write_Window2(_WB.Views[0]));
if(b8) write_biff_rec(ba, "Window2", write_Window2((_WB.Views||[])[0]));
/* ... */
if(b8 && (ws['!merges']||[]).length) write_biff_rec(ba, "MergeCells", write_MergeCells(ws['!merges']));
/* [LRng] *QUERYTABLE [PHONETICINFO] CONDFMTS */