From 872d3f080177bec85b4f7ef9593889cddc81efa2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 24 Nov 2020 12:07:57 +0300 Subject: [PATCH] [SSE] Fix Bug 47614 --- .../main/app/view/ChartDataDialog.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js index dced53cc8..2221f64db 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js @@ -528,11 +528,15 @@ define([ }, onSwitch: function() { - this.chartSettings.switchRowCol(); - this.updateSeriesList(this.chartSettings.getSeries(), 0); - this.updateCategoryList(this.chartSettings.getCatValues()); - this.updateRange(); - this.updateButtons(); + var res = this.chartSettings.switchRowCol(); + if (res === Asc.c_oAscError.ID.MaxDataSeriesError) + Common.UI.warning({msg: this.errorMaxRows, maxwidth: 600}); + else { + this.updateSeriesList(this.chartSettings.getSeries(), 0); + this.updateCategoryList(this.chartSettings.getCatValues()); + this.updateRange(); + this.updateButtons(); + } }, textTitle: 'Chart Data',