From 0ddb1435c910b76c7939ee8c9d8273c7d36718b8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 19 Mar 2018 14:07:03 +0100 Subject: [PATCH] Fix default spellchecker when only Enchant is available This has been annoying me for ages. (cherry picked from commit ae473b012a9c7605919f3f3bfad35710cab29566) --- src/LyXRC.cpp | 2 ++ status.23x | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 7cfa2a3445..104dcfbb21 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -283,6 +283,8 @@ void LyXRC::setDefaults() // FIXME: this check should test the target platform (darwin) #if defined(USE_MACOSX_PACKAGING) spellchecker = "native"; +#elif defined(USE_ENCHANT) + spellchecker = "enchant"; #elif defined(USE_ASPELL) spellchecker = "aspell"; #elif defined(USE_HUNSPELL) diff --git a/status.23x b/status.23x index d1728d60af..126e5c1fe9 100644 --- a/status.23x +++ b/status.23x @@ -68,7 +68,11 @@ What's new - Fix list of viewable formats in view/update menu (bug 11044). -- Fix encoding problems with listings insets and non-TeX fonts (bug 11056). +- Fix encoding problems with listings insets and non-TeX fonts (bug + 11056). + +- When only Enchant is configured as a spell checker, configure it + properly as default. * INTERNALS -- 2.39.5