From 7fface125e7db1e7ab47bdfbda5306fa16ea2486 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 Apr 2014 09:55:00 +0200 Subject: Fix error when spell-checking an empty text (#1489831) --- program/js/googiespell.js | 1 + 1 file changed, 1 insertion(+) (limited to 'program/js') 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); -- cgit v1.2.3