Commit fdb91f5a authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix columns count if no columns and colFields no empty (x = -2)

parent 0e223785
......@@ -2608,7 +2608,14 @@ CT_pivotTableDefinition.prototype.getRange = function () {
return this.location && this.location.ref;
};
CT_pivotTableDefinition.prototype.getColumnFieldsCount = function () {
return this.colFields ? this.colFields.field.length : 0;
var res = 0;
if (this.colFields) {
res = this.colFields.field.length;
if (1 === res && -2 === this.colFields.field[0].x) {
res = 0;
}
}
return res;
};
CT_pivotTableDefinition.prototype.getRowFieldsCount = function (compact) {
var t = this, res = 0, l;
......
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