Set tabSelected to 0 per issue #26

This commit is contained in:
Pieter Sheth-Voss 2016-04-05 23:17:01 -04:00
parent 7de41c2657
commit 876c4a0552
2 changed files with 2 additions and 2 deletions

@ -320,7 +320,7 @@ function write_ws_xml(idx, opts, wb) {
var sheetView = writextag('sheetView', null, {
showGridLines: opts.showGridLines == false ? '0' : '1',
tabSelected: opts.tabSelected === undefined ? '1' : opts.tabSelected,
tabSelected: opts.tabSelected === undefined ? '0' : opts.tabSelected, // see issue #26, need to set WorkbookViews if this is set
workbookViewId: opts.workbookViewId === undefined ? '0' : opts.workbookViewId
});
o[o.length] = writextag('sheetViews', sheetView);

@ -7852,7 +7852,7 @@ function write_ws_xml(idx, opts, wb) {
var sheetView = writextag('sheetView', null, {
showGridLines: opts.showGridLines == false ? '0' : '1',
tabSelected: opts.tabSelected === undefined ? '1' : opts.tabSelected,
tabSelected: opts.tabSelected === undefined ? '0' : opts.tabSelected, // see issue #26, need to set WorkbookViews if this is set
workbookViewId: opts.workbookViewId === undefined ? '0' : opts.workbookViewId
});
o[o.length] = writextag('sheetViews', sheetView);