@@ -115,7 +115,6 @@ function parse_workbook(blob, options/*:ParseOpts*/)/*:Workbook*/ {
115
115
var arrayf /*:Array<[Range, string]>*/ = [ ] ;
116
116
var temp_val /*:Cell*/ ;
117
117
var country ;
118
- var cell_valid = true ;
119
118
var XFs = [ ] ; /* XF records */
120
119
var palette /*:Array<[number, number, number]>*/ = [ ] ;
121
120
var Workbook /*:WBWBProps*/ = ( { Sheets :[ ] , WBProps :{ date1904 :false } , Views :[ { } ] } /*:any*/ ) , wsprops = { } ;
@@ -135,8 +134,7 @@ function parse_workbook(blob, options/*:ParseOpts*/)/*:Workbook*/ {
135
134
} ;
136
135
var addcell = function addcell ( cell /*:any*/ , line /*:any*/ , options /*:any*/ ) {
137
136
if ( file_depth > 1 ) return ;
138
- if ( options . sheetRows && cell . r >= options . sheetRows ) cell_valid = false ;
139
- if ( ! cell_valid ) return ;
137
+ if ( options . sheetRows && cell . r >= options . sheetRows ) return ;
140
138
if ( options . cellStyles && line . XF && line . XF . data ) process_cell_style ( cell , line , options ) ;
141
139
delete line . ixfe ; delete line . XF ;
142
140
lastcell = cell ;
@@ -365,7 +363,6 @@ function parse_workbook(blob, options/*:ParseOpts*/)/*:Workbook*/ {
365
363
if ( val . BIFFVer == 0 && val . dt == 0x1000 ) { opts . biff = 5 ; seen_codepage = true ; set_cp ( opts . codepage = 28591 ) ; }
366
364
if ( opts . biff == 8 && val . BIFFVer == 0 && val . dt == 16 ) opts . biff = 2 ;
367
365
if ( file_depth ++ ) break ;
368
- cell_valid = true ;
369
366
out = ( ( options . dense ? [ ] : { } ) /*:any*/ ) ;
370
367
371
368
if ( opts . biff < 8 && ! seen_codepage ) { seen_codepage = true ; set_cp ( opts . codepage = options . codepage || 1252 ) ; }
@@ -462,7 +459,6 @@ function parse_workbook(blob, options/*:ParseOpts*/)/*:Workbook*/ {
462
459
}
463
460
} break ;
464
461
case 'ShrFmla' : {
465
- if ( ! cell_valid ) break ;
466
462
if ( ! options . cellFormula ) break ;
467
463
if ( last_cell ) {
468
464
/* TODO: capture range */
0 commit comments