Commit 20a99c1a authored by Alexander.Trofimov's avatar Alexander.Trofimov

check row fields

parent 569fb116
......@@ -2727,11 +2727,13 @@ CT_pivotTableDefinition.prototype.updatePivotType = function () {
var field;
var pivotFields = this.asc_getPivotFields();
var rowFields = this.asc_getRowFields();
for (var i = 0; i < rowFields.length; ++i) {
field = pivotFields[rowFields[i].asc_getIndex()];
if (false !== field.outline) {
this.clearGrid = true;
break;
if (rowFields) {
for (var i = 0; i < rowFields.length; ++i) {
field = pivotFields[rowFields[i].asc_getIndex()];
if (false !== field.outline) {
this.clearGrid = true;
break;
}
}
}
};
......
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