[SSE] Fix Bug 35722.

This commit is contained in:
Julia Radzhabova 2017-08-29 15:43:16 +03:00
parent d72edde725
commit 3dee547c98
3 changed files with 9 additions and 3 deletions

View file

@ -1888,8 +1888,12 @@ define([
this._state.clrshd_asccolor = color; this._state.clrshd_asccolor = color;
} }
if (selectionType == Asc.c_oAscSelectionType.RangeChart || selectionType == Asc.c_oAscSelectionType.RangeChartText) var in_chart = (selectionType == Asc.c_oAscSelectionType.RangeChart || selectionType == Asc.c_oAscSelectionType.RangeChartText);
return; if (in_chart !== this._state.in_chart) {
toolbar.btnInsertChart.updateHint(in_chart ? toolbar.tipChangeChart : toolbar.tipInsertChart);
this._state.in_chart = in_chart;
}
if (in_chart) return;
if (!toolbar.mode.isEditDiagram) if (!toolbar.mode.isEditDiagram)
{ {

View file

@ -2059,6 +2059,7 @@ define([
textTabFile: 'File', textTabFile: 'File',
textTabHome: 'Home', textTabHome: 'Home',
textTabInsert: 'Insert', textTabInsert: 'Insert',
textSurface: 'Surface' textSurface: 'Surface',
tipChangeChart: 'Change Chart Type'
}, SSE.Views.Toolbar || {})); }, SSE.Views.Toolbar || {}));
}); });

View file

@ -1664,6 +1664,7 @@
"SSE.Views.Toolbar.tipBack": "Back", "SSE.Views.Toolbar.tipBack": "Back",
"SSE.Views.Toolbar.tipBorders": "Borders", "SSE.Views.Toolbar.tipBorders": "Borders",
"SSE.Views.Toolbar.tipCellStyle": "Cell Style", "SSE.Views.Toolbar.tipCellStyle": "Cell Style",
"SSE.Views.Toolbar.tipChangeChart": "Change Chart Type",
"SSE.Views.Toolbar.tipClearStyle": "Clear", "SSE.Views.Toolbar.tipClearStyle": "Clear",
"SSE.Views.Toolbar.tipColorSchemas": "Change Color Scheme", "SSE.Views.Toolbar.tipColorSchemas": "Change Color Scheme",
"SSE.Views.Toolbar.tipCopy": "Copy", "SSE.Views.Toolbar.tipCopy": "Copy",