From 42fefe47abbfe9b6484024880652eee6978da676 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 25 Nov 2020 18:28:56 +0300 Subject: [PATCH] [DE] Fix Bug 47663 --- apps/documenteditor/main/app/controller/Toolbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 4a06f1aa7..1ea44a6c0 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1699,6 +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_GetLineNumbersProps() && props.put_CountBy(undefined); this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, props); } break;