From aa86cdb06238e4fda14cd55a8f3ae83aa254258d Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 23 Jul 2009 17:02:19 +0000 Subject: [PATCH] Turn a few string joins into wxString::Format, also change a printf to wxLogDebug as it's unnecessary spam to the user, this fixes a weird error wx2.9 was having. Originally committed to SVN as r3222. --- aegisub/src/spellchecker_hunspell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aegisub/src/spellchecker_hunspell.cpp b/aegisub/src/spellchecker_hunspell.cpp index 678c84da9..42576cee4 100644 --- a/aegisub/src/spellchecker_hunspell.cpp +++ b/aegisub/src/spellchecker_hunspell.cpp @@ -245,11 +245,11 @@ void HunspellSpellChecker::SetLanguage(wxString language) { wxString userPath = StandardPaths::DecodePath(_T("?user/dictionaries/user_")); // Get affix and dictionary paths - affpath = path + language + _T(".aff"); - dicpath = path + language + _T(".dic"); - usrdicpath = userPath + language + _T(".dic"); + affpath = wxString::Format("%s%s.aff", path, language); + dicpath = wxString::Format("%s%s.dic", path, language); + usrdicpath = wxString::Format("%s%s.dic", userPath, language); - printf("Using dictionary %ls for spellchecking\n", dicpath.c_str()); + wxLogDebug("Using dictionary %ls for spellchecking\n", dicpath); // Check if language is available if (!wxFileExists(affpath) || !wxFileExists(dicpath)) return;