1
forked from sheetjs/sheetjs

to_csv skipHidden corner case (fixes )

This commit is contained in:
Tor Nilsson Öhrn 2019-05-15 20:40:43 +02:00 committed by SheetJS
parent 9a6d8a1d3d
commit 4109caeadd

@ -18,7 +18,6 @@ if(has_buf && typeof require != 'undefined') (function() {
var BOM = false; var BOM = false;
stream._read = function() { stream._read = function() {
if(!BOM) { BOM = true; return stream.push("\uFEFF"); } if(!BOM) { BOM = true; return stream.push("\uFEFF"); }
if(R > r.e.r) return stream.push(null);
while(R <= r.e.r) { while(R <= r.e.r) {
++R; ++R;
if ((rowinfo[R-1]||{}).hidden) continue; if ((rowinfo[R-1]||{}).hidden) continue;
@ -29,6 +28,7 @@ if(has_buf && typeof require != 'undefined') (function() {
break; break;
} }
} }
if(R > r.e.r) return stream.push(null);
}; };
return stream; return stream;
}; };