diff --git a/apps/spreadsheeteditor/main/app/controller/PivotTable.js b/apps/spreadsheeteditor/main/app/controller/PivotTable.js index 8f0f79808..981850647 100644 --- a/apps/spreadsheeteditor/main/app/controller/PivotTable.js +++ b/apps/spreadsheeteditor/main/app/controller/PivotTable.js @@ -182,8 +182,8 @@ define([ onPivotGrandTotals: function(type){ if (this.api) { var props = this._originalProps.asc_clone(); - props.asc_setColGrandTotals(type == 1 || type == 3); - props.asc_setRowGrandTotals(type == 1 || type == 2); + props.asc_setColGrandTotals(type == 1 || type == 2); + props.asc_setRowGrandTotals(type == 1 || type == 3); this._originalProps.asc_set(this.api, props); } Common.NotificationCenter.trigger('edit:complete', this);