From 9e762b504b912e6ab72ce0005f825af57bac72fb Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Fri, 11 Jan 2008 00:38:47 +0000 Subject: [PATCH] Changed lib name for hunspell to semi-conform to the official solution (debug lib needs _d appended). Originally committed to SVN as r1677. --- aegisub/setup.cpp | 4 ++-- aegisub/spellchecker_hunspell.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/setup.cpp b/aegisub/setup.cpp index a4efca54d..238faf85a 100644 --- a/aegisub/setup.cpp +++ b/aegisub/setup.cpp @@ -153,9 +153,9 @@ // Hunspell #ifdef WITH_HUNSPELL #ifdef __WXDEBUG__ -#pragma comment(lib,"hunspelld.lib") +#pragma comment(lib,"libhunspell_d.lib") #else -#pragma comment(lib,"hunspell.lib") +#pragma comment(lib,"libhunspell.lib") #endif #endif diff --git a/aegisub/spellchecker_hunspell.cpp b/aegisub/spellchecker_hunspell.cpp index ab9762652..d741630af 100644 --- a/aegisub/spellchecker_hunspell.cpp +++ b/aegisub/spellchecker_hunspell.cpp @@ -131,7 +131,7 @@ void HunspellSpellChecker::AddWord(wxString word) { if (!hunspell) return; // Add to currently loaded file - hunspell->put_word(word.mb_str(*conv)); + hunspell->add(word.mb_str(*conv)); // Load dictionary wxArrayString dic;