[DE] Fix Bug 50912

This commit is contained in:
Julia Radzhabova 2021-07-07 16:18:34 +03:00
parent d38e88f063
commit a1edc609b4
2 changed files with 4 additions and 1 deletions

View file

@ -895,6 +895,8 @@ define([
if (need_disable != toolbar.btnColumns.isDisabled())
toolbar.btnColumns.setDisabled(need_disable);
toolbar.btnLineNumbers.setDisabled(in_image && in_para || this._state.lock_doc);
if (toolbar.listStylesAdditionalMenuItem && (frame_pr===undefined) !== toolbar.listStylesAdditionalMenuItem.isDisabled())
toolbar.listStylesAdditionalMenuItem.setDisabled(frame_pr===undefined);
@ -1761,6 +1763,7 @@ define([
switch (item.value) {
case 0:
this._state.linenum = undefined;
this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, null);
break;
case 1:

View file

@ -1006,7 +1006,7 @@ define([
]
})
});
this.toolbarControls.push(this.btnLineNumbers);
this.btnClearStyle = new Common.UI.Button({
id: 'id-toolbar-btn-clearstyle',