to_csv skipHidden corner case (fixes #1508)

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