diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index b953ad8e5..196cf3475 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -2056,8 +2056,10 @@ define([ this.api.asc_ignoreUppercase(value); value = Common.localStorage.getBool("sse-spellcheck-ignore-numbers-words"); this.api.asc_ignoreNumbers(value); - value = parseInt(Common.localStorage.getItem("sse-spellcheck-locale")); - this.api.asc_setDefaultLanguage(value); + value = Common.localStorage.getItem("sse-spellcheck-locale"); + if (value) { + this.api.asc_setDefaultLanguage(parseInt(value)); + } } }, diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 4d700c45f..d86f1107a 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1087,9 +1087,11 @@ define([ Common.localStorage.setBool("sse-spellcheck-ignore-numbers-words", value); Common.Utils.InternalSettings.set("sse-spellcheck-ignore-numbers-words", value); - value = this.cmbDictionaryLanguage.getValue(); - Common.localStorage.setItem("sse-spellcheck-locale", value); - Common.Utils.InternalSettings.set("sse-spellcheck-locale", value); + if (!this.cmbDictionaryLanguage.isDisabled()) { + value = this.cmbDictionaryLanguage.getValue(); + Common.localStorage.setItem("sse-spellcheck-locale", value); + Common.Utils.InternalSettings.set("sse-spellcheck-locale", value); + } Common.localStorage.save(); if (this.menu) {