From 8f0f1b5110a2ffe4a6e81dabdb9238bee77757f0 Mon Sep 17 00:00:00 2001 From: Alexey Koshelev Date: Thu, 12 Sep 2024 17:32:11 +0300 Subject: [PATCH] [common] For bug 52357 --- apps/common/main/lib/view/AutoCorrectDialog.js | 2 +- apps/presentationeditor/main/app/controller/Main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/AutoCorrectDialog.js b/apps/common/main/lib/view/AutoCorrectDialog.js index fe9dc6c71b..d3a2801812 100644 --- a/apps/common/main/lib/view/AutoCorrectDialog.js +++ b/apps/common/main/lib/view/AutoCorrectDialog.js @@ -447,7 +447,7 @@ define([ var checked = (field.getValue()==='checked'); Common.localStorage.setBool(me.appPrefix + "settings-letter-exception-cells", checked); Common.Utils.InternalSettings.set(me.appPrefix + "settings-letter-exception-cells", checked); - me.api.asc_SetAutoCorrectFirstLetterOfSentences && me.api.asc_SetAutoCorrectFirstLetterOfSentences(checked); + me.api.asc_SetAutoCorrectFirstLetterOfCells && me.api.asc_SetAutoCorrectFirstLetterOfCells(checked); }); this.btnsCategory[3].on('click', _.bind(this.onAutocorrectCategoryClick, this, false)); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 2a6bf3da79..babbcaf91f 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -2632,7 +2632,7 @@ define([ Common.Utils.InternalSettings.set("pe-settings-letter-exception-sentence", value); me.api.asc_SetAutoCorrectFirstLetterOfSentences(value); - value = Common.localStorage.getItem("pe-settings-letter-exceptionl-cells", true); + value = Common.localStorage.getItem("pe-settings-letter-exception-cells"); value = value !== null ? parseInt(value) != 0 : Common.localStorage.getBool("pe-settings-autoformat-fl-cells", true); Common.Utils.InternalSettings.set("pe-settings-letter-exception-cells", value); me.api.asc_SetAutoCorrectFirstLetterOfCells && me.api.asc_SetAutoCorrectFirstLetterOfCells(value);