Commit c1fcad76 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Bug 26981.

parent 08e61d9c
......@@ -1557,13 +1557,10 @@ define([
onApiSelectionChanged: function(info) {
if (!this.editMode) return;
var selectionType = info.asc_getFlags().asc_getSelectionType();
var coauth_disable = (!this.toolbar.mode.isEditMailMerge && !this.toolbar.mode.isEditDiagram) ? (info.asc_getLocked()===true) : false;
if (this._disableEditOptions(selectionType, coauth_disable)) {
return;
}
var me = this,
var selectionType = info.asc_getFlags().asc_getSelectionType(),
coauth_disable = (!this.toolbar.mode.isEditMailMerge && !this.toolbar.mode.isEditDiagram) ? (info.asc_getLocked()===true) : false,
editOptionsDisabled = this._disableEditOptions(selectionType, coauth_disable),
me = this,
toolbar = this.toolbar,
fontobj = info.asc_getFont(),
val, need_disable = false;
......@@ -1574,6 +1571,15 @@ define([
Common.NotificationCenter.trigger('fonts:change', fontobj);
}
/* read font size */
var str_size = fontobj.asc_getSize();
if (this._state.fontsize !== str_size) {
toolbar.cmbFontSize.setValue((str_size!==undefined) ? str_size : '');
this._state.fontsize = str_size;
}
if (editOptionsDisabled) return;
/* read font params */
if (!toolbar.mode.isEditMailMerge && !toolbar.mode.isEditDiagram) {
val = fontobj.asc_getBold();
......@@ -1593,13 +1599,6 @@ define([
}
}
/* read font size */
var str_size = fontobj.asc_getSize();
if (this._state.fontsize !== str_size) {
toolbar.cmbFontSize.setValue((str_size!==undefined) ? str_size : '');
this._state.fontsize = str_size;
}
/* read font color */
var clr,
color,
......
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