diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:55:00 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:55:00 +0200 |
commit | a54cff4c569f74f7ec1b2ab8379b7ad1820a8af9 (patch) | |
tree | 8b0f9c9eaf39f64f2ab1f1b882744bd4b6bb58a1 /program/js | |
parent | 5a7b7ce039c5bffc370ec79aea5eba6043c908ec (diff) |
Fix error when spell-checking an empty text (#1489831)
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/googiespell.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/googiespell.js b/program/js/googiespell.js index c33c56872..de58b7e87 100644 --- a/program/js/googiespell.js +++ b/program/js/googiespell.js @@ -289,6 +289,7 @@ this.prepare = function(ignore, no_indicator) this.cnt_errors_fixed = 0; this.cnt_errors = 0; this.setStateChanged('checking_spell'); + this.orginal_text = ''; if (!no_indicator && this.main_controller) this.appendIndicator(this.spell_span); |