[se] Fix bug 77578

This commit is contained in:
GoshaZotov
2025-10-14 00:09:41 +03:00
parent e93e03e5be
commit ea769f11e0

View File

@ -3136,8 +3136,10 @@ function (window, undefined) {
/** @type {TypedCacheAxis} */
const axisData = bHor? this.data[wsId].horizontal : this.data[wsId].vertical;
if (!axisData[rowCol]) {
axisData[rowCol] = {};
this.generateCache(ws, bHor, rowCol, savingValueCallback, tmpToTypedCallback, tmpArrayCallback)
let container = {};
container[rowCol] = {};
this.generateCache(ws, bHor, rowCol, savingValueCallback, tmpToTypedCallback, tmpArrayCallback, container);
axisData[rowCol] = container[rowCol];
}
return axisData[rowCol][elementType];
};
@ -3149,11 +3151,12 @@ function (window, undefined) {
* @param {(value: LookUpElement, i: number) => any} savingValueCallback
* @param {(value: any) => number} tmpToTypedCallback
* @param {(value: {cElementType: any[]}) => void} [tmpArrayCallback]
* @param {Object} [opt_container] - Optional container object to use instead of the default axis data structure.
* @return {Uint32Array}
*/
TypedCache.prototype.generateCache = function(ws, bHor, rowCol, savingValueCallback, tmpToTypedCallback, tmpArrayCallback) {
TypedCache.prototype.generateCache = function(ws, bHor, rowCol, savingValueCallback, tmpToTypedCallback, tmpArrayCallback, opt_container) {
const wsId = ws.Get_Id();
const axisData = bHor ? this.data[wsId].horizontal : this.data[wsId].vertical;
const axisData = opt_container ? opt_container : (bHor ? this.data[wsId].horizontal : this.data[wsId].vertical);
const tmpArrays = {};
const c1 = bHor ? 0 : rowCol;
const r1 = bHor ? rowCol : 0;