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.
This commit is contained in:
Amar Takhar 2009-07-23 17:02:19 +00:00
parent 0f6977fa39
commit aa86cdb062
1 changed files with 4 additions and 4 deletions

View File

@ -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;