From 5a80aa6fcfe80b69bff0c891a699fff590cbaaad Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 5 Jan 2012 13:19:04 +0000 Subject: [PATCH] #7884 add check for missing dictionaries when spell check starts... forgot to implement numDictionaries for Enchant in r40568 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40572 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/EnchantChecker.cpp | 6 ++++++ src/EnchantChecker.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/EnchantChecker.cpp b/src/EnchantChecker.cpp index cbccc34aae..179e8365a5 100644 --- a/src/EnchantChecker.cpp +++ b/src/EnchantChecker.cpp @@ -188,6 +188,12 @@ bool EnchantChecker::hasDictionary(Language const * lang) const } +int EnchantChecker::numDictionaries() const +{ + return d->spellers_.size(); +} + + docstring const EnchantChecker::error() { return docstring(); diff --git a/src/EnchantChecker.h b/src/EnchantChecker.h index 30cad28436..fc1b70b13a 100644 --- a/src/EnchantChecker.h +++ b/src/EnchantChecker.h @@ -37,6 +37,7 @@ public: void remove(WordLangTuple const &); void accept(WordLangTuple const &); bool hasDictionary(Language const * lang) const; + int numDictionaries() const; docstring const error(); void advanceChangeNumber(); ///@}