This commit is contained in:
sankhavaram saitulasiram 2022-09-29 15:17:21 +05:30 committed by GitHub
commit 2d2b648e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,11 @@ function sheet_add_aoa(_ws/*:?Worksheet*/, data/*:AOA*/, opts/*:?any*/)/*:Worksh
}
}
}
if(range.s.c < 10000000) ws['!ref'] = encode_range(range);
if (range.s.c < 10000000) {
if (range.s.c > _C) range.s.c = _C;
if (range.s.r > _R) range.s.r = _R;
ws['!ref'] = encode_range(range);
}
return ws;
}
function aoa_to_sheet(data/*:AOA*/, opts/*:?any*/)/*:Worksheet*/ { return sheet_add_aoa(null, data, opts); }