diff --git a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js index 0e5202b19d..b2ec34d0df 100644 --- a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js @@ -258,7 +258,7 @@ define([ }, onSpellCheckVariantsFound: function (property) { - if (property===null && this._currentSpellObj === property && !(this.panelSpellcheck && this.panelSpellcheck.isVisible())) + if (!this.panelSpellcheck || property===null && this._currentSpellObj === property && !this.panelSpellcheck.isVisible()) return; this._currentSpellObj = property;