From 81620a75b2c5aaa4ab5bcb41b31fe2c41ce4307c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 5 Nov 2020 13:11:40 +0300 Subject: [PATCH] [DE] Fix Bug 47254 --- apps/documenteditor/main/app/controller/Toolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 480e6d114..4a06f1aa7 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1690,7 +1690,7 @@ define([ switch (item.value) { case 0: - this.api.asc_SetLineNumbersProps(this._state.linenum_apply, null); + this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, null); break; case 1: case 2: @@ -1699,7 +1699,7 @@ define([ if (this.api && item.checked) { var props = new Asc.CSectionLnNumType(); props.put_Restart(item.value==1 ? Asc.c_oAscLineNumberRestartType.Continuous : (item.value==2 ? Asc.c_oAscLineNumberRestartType.NewPage : Asc.c_oAscLineNumberRestartType.NewSection)); - this.api.asc_SetLineNumbersProps(this._state.linenum_apply, props); + this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, props); } break; case 4: