Skip to content

Commit b9323c5

Browse files
authored
Update 78_writebiff.js
fix(print): Excel crashes when printing XLS fix provided by the SheetJSDev in #1967.
1 parent d4cfadb commit b9323c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bits/78_writebiff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function write_ws_biff8(idx/*:number*/, opts, wb/*:Workbook*/) {
245245
}
246246
var cname/*:string*/ = _sheet.CodeName || _sheet.name || s;
247247
/* ... */
248-
if(b8 && _WB.Views) write_biff_rec(ba, "Window2", write_Window2(_WB.Views[0]));
248+
if(b8) write_biff_rec(ba, "Window2", write_Window2((_WB.Views||[])[0]));
249249
/* ... */
250250
if(b8 && (ws['!merges']||[]).length) write_biff_rec(ba, "MergeCells", write_MergeCells(ws['!merges']));
251251
/* [LRng] *QUERYTABLE [PHONETICINFO] CONDFMTS */

0 commit comments

Comments
 (0)