From d039ab34abc3a301812db886169a27d711210804 Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Thu, 13 Jul 2017 18:49:42 +0300 Subject: [PATCH] fix set options style info for pivot table --- .../main/app/controller/PivotTable.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/PivotTable.js b/apps/spreadsheeteditor/main/app/controller/PivotTable.js index f84c6b699..725f3468c 100644 --- a/apps/spreadsheeteditor/main/app/controller/PivotTable.js +++ b/apps/spreadsheeteditor/main/app/controller/PivotTable.js @@ -159,25 +159,25 @@ define([ } value = styleInfo.asc_getShowColHeaders(); - if (this._state.RowBanded!==value) { - view.chRowBanded.setValue(value, true); - this._state.RowBanded=value; - needTablePictures = true; - } + if (this._state.ColHeader!==value) { + view.chColHeader.setValue(value, true); + this._state.ColHeader=value; + needTablePictures = true; + } value = styleInfo.asc_getShowColStripes(); - if (this._state.ColHeader!==value) { - view.chColHeader.setValue(value, true); - this._state.ColHeader=value; - needTablePictures = true; - } + if (this._state.ColBanded!==value) { + view.chColBanded.setValue(value, true); + this._state.ColBanded=value; + needTablePictures = true; + } value = styleInfo.asc_getShowRowStripes(); - if (this._state.ColBanded!==value) { - view.chColBanded.setValue(value, true); - this._state.ColBanded=value; - needTablePictures = true; - } + if (this._state.RowBanded!==value) { + view.chRowBanded.setValue(value, true); + this._state.RowBanded=value; + needTablePictures = true; + } if (needTablePictures) // this.onApiInitPivotStyles(this.api.asc_getTablePictures(styleInfo, true));