]> git.lyx.org Git - lyx.git/commitdiff
Let new pspell work
authorJohn Levon <levon@movementarian.org>
Tue, 6 Aug 2002 02:45:42 +0000 (02:45 +0000)
committerJohn Levon <levon@movementarian.org>
Tue, 6 Aug 2002 02:45:42 +0000 (02:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4873 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/sp_spell.C

index ef5444ca24de7f04316e050b4ca7d694e92f963b..d1716e8aacc16fa9090a723338460beef068172a 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-06  John Levon  <levon@movementarian.org>
+
+       * sp_spell.C: let the new aspell pspell work
 2002-08-01  John Levon  <levon@movementarian.org>
 
        * lyxfunc.C: let user specify a non-existent file on open
index b5b47d907afb2fb10c5c2f429a7de3875b4a90ba..0a7c4d079583e4bed22c740e3ac824325bc012b4 100644 (file)
@@ -75,7 +75,10 @@ namespace {
 #include "support/LAssert.h"
 
 #define USE_ORIGINAL_MANAGER_FUNCS 1
+// new aspell pspell missing extern "C"
+extern "C" {
 # include <pspell/pspell.h>
+}
 
 #include "sp_pspell.h"
 
@@ -107,7 +110,7 @@ PSpell::~PSpell()
 void PSpell::initialize(BufferParams const &, string const & lang)
 {
        PspellConfig * config = new_pspell_config();
-       config->replace("language-tag", lang.c_str());
+       pspell_config_replace(config, "language-tag", lang.c_str());
        spell_error_object = new_pspell_manager(config);
        if (pspell_error_number(spell_error_object) != 0) {
                error_ = pspell_error_message(spell_error_object);