[SSE] Bug 26981.
This commit is contained in:
parent
08e61d9cd8
commit
c1fcad76d0
|
@ -1557,13 +1557,10 @@ define([
|
||||||
onApiSelectionChanged: function(info) {
|
onApiSelectionChanged: function(info) {
|
||||||
if (!this.editMode) return;
|
if (!this.editMode) return;
|
||||||
|
|
||||||
var selectionType = info.asc_getFlags().asc_getSelectionType();
|
var selectionType = info.asc_getFlags().asc_getSelectionType(),
|
||||||
var coauth_disable = (!this.toolbar.mode.isEditMailMerge && !this.toolbar.mode.isEditDiagram) ? (info.asc_getLocked()===true) : false;
|
coauth_disable = (!this.toolbar.mode.isEditMailMerge && !this.toolbar.mode.isEditDiagram) ? (info.asc_getLocked()===true) : false,
|
||||||
if (this._disableEditOptions(selectionType, coauth_disable)) {
|
editOptionsDisabled = this._disableEditOptions(selectionType, coauth_disable),
|
||||||
return;
|
me = this,
|
||||||
}
|
|
||||||
|
|
||||||
var me = this,
|
|
||||||
toolbar = this.toolbar,
|
toolbar = this.toolbar,
|
||||||
fontobj = info.asc_getFont(),
|
fontobj = info.asc_getFont(),
|
||||||
val, need_disable = false;
|
val, need_disable = false;
|
||||||
|
@ -1574,6 +1571,15 @@ define([
|
||||||
Common.NotificationCenter.trigger('fonts:change', fontobj);
|
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 */
|
/* read font params */
|
||||||
if (!toolbar.mode.isEditMailMerge && !toolbar.mode.isEditDiagram) {
|
if (!toolbar.mode.isEditMailMerge && !toolbar.mode.isEditDiagram) {
|
||||||
val = fontobj.asc_getBold();
|
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 */
|
/* read font color */
|
||||||
var clr,
|
var clr,
|
||||||
color,
|
color,
|
||||||
|
|
Loading…
Reference in a new issue