From c5ffbe1dc8490fee49bfcaf21fd90ca62fda846d Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 8 Oct 2022 23:15:45 +0800 Subject: [PATCH] Keep running when spell checking fails --- ChangeLog | 1 + src/wrapaspell.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e5c1684..a41b815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ # Version number followed by the release date 1.3.1.0 + * Keep running when spell checking fails + Support libenchant-2 * Fix a DDE error on Windows (Bug #236) * gdk_x11_get_server_time crashes when an invalid window is passed diff --git a/src/wrapaspell.cpp b/src/wrapaspell.cpp index c92faa8..249b20e 100644 --- a/src/wrapaspell.cpp +++ b/src/wrapaspell.cpp @@ -60,8 +60,9 @@ WrapAspell::WrapAspell ( spell_checker = 0; if ( aspell_error_number ( possible_err ) != 0) { - puts ( aspell_error_message ( possible_err ) ); - throw; + const char *error = aspell_error_message ( possible_err ); + wxLogError ( error ); + throw error; } else spell_checker = to_aspell_speller ( possible_err );