Commit 1962f9a9 authored by GoshaZotov's avatar GoshaZotov

fix bug 32462 - Использование форматированной таблицы в формулах учитывает строку итогов

parent a39c5429
...@@ -4857,7 +4857,10 @@ TablePart.prototype.getTableRangeForFormula = function(objectParam) ...@@ -4857,7 +4857,10 @@ TablePart.prototype.getTableRangeForFormula = function(objectParam)
} }
case FormulaTablePartInfo.data: case FormulaTablePartInfo.data:
{ {
res = new Asc.Range(this.Ref.c1, this.Ref.r1 + 1, this.Ref.c2, this.Ref.r2); var startRow = this.HeaderRowCount === null ? this.Ref.r1 + 1 : this.Ref.r1;
var endRow = this.TotalsRowCount ? this.Ref.r2 - 1 : this.Ref.r2;
res = new Asc.Range(this.Ref.c1, startRow, this.Ref.c2, endRow);
break; break;
} }
case FormulaTablePartInfo.headers: case FormulaTablePartInfo.headers:
......
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