[SSE] Bug 26981.
This commit is contained in:
parent
08e61d9cd8
commit
c1fcad76d0
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue