From ad4ddc98a07cc7012afad276770a1ae76816d755 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 6 Aug 2002 02:45:42 +0000 Subject: [PATCH] Let new pspell work git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4873 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/sp_spell.C | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ef5444ca24..d1716e8aac 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-08-06 John Levon + + * sp_spell.C: let the new aspell pspell work + 2002-08-01 John Levon * lyxfunc.C: let user specify a non-existent file on open diff --git a/src/sp_spell.C b/src/sp_spell.C index b5b47d907a..0a7c4d0795 100644 --- a/src/sp_spell.C +++ b/src/sp_spell.C @@ -75,7 +75,10 @@ namespace { #include "support/LAssert.h" #define USE_ORIGINAL_MANAGER_FUNCS 1 +// new aspell pspell missing extern "C" +extern "C" { # include +} #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);