Commit ce9b40d9 authored by konovalovsergey's avatar konovalovsergey

calculate offset of shared formulas relative to the master cell

parent 2ce02c37
......@@ -2611,7 +2611,8 @@
oCell.formulaParsed.parse();
formulaShared[oFormulaExt.si] = {
fVal: oCell.formulaParsed,
fRef: AscCommonExcel.g_oRangeCache.getAscRange(oFormulaExt.ref)
fRef: AscCommonExcel.g_oRangeCache.getAscRange(oFormulaExt.ref),
fCell: oCell
};
if (!bNoBuildDep) {
oCell._BuildDependencies(false);
......@@ -2621,7 +2622,7 @@
var fs = formulaShared[oFormulaExt.si];
if (fs && fs.fRef.contains(oCell.nCol, oCell.nRow)) {
if (fs.fVal.isParsed) {
var off = oCell.getOffset3(fs.fRef.c1 + 1, fs.fRef.r1 + 1);
var off = oCell.getOffset(fs.fCell);
oCell.formulaParsed = fs.fVal.clone(null, oCell, this);
oCell.formulaParsed.ca = oFormulaExt.ca;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment