Commit 4f89dffb authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix firstHeaderCell with no rows

parent e7819a5a
......@@ -4861,7 +4861,7 @@
}
dxf = style.firstHeaderCell && style.firstHeaderCell.dxf;
if (styleInfo.showColHeaders && styleInfo.showRowHeaders && countC && dxf) {
cells = this.getRange3(pivotRange.r1, pivotRange.c1, pivotRange.r1 + countC - 1,
cells = this.getRange3(pivotRange.r1, pivotRange.c1, pivotRange.r1 + countC - (countR ? 1 : 0),
pivotRange.c1 + Math.max(0, countR - 1));
cells.setTableStyle(dxf);
}
......
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