diff --git a/core/fonts_collector.cpp b/core/fonts_collector.cpp index ddd5ec362..3ae1c9dbe 100644 --- a/core/fonts_collector.cpp +++ b/core/fonts_collector.cpp @@ -211,7 +211,7 @@ wxArrayString FontsCollectorThread::GetFontFiles (wxString face) { n++; } } - if (n==0) throw wxString(_T("Font not found: %s"), face); + if (n==0) throw wxString(_T("Font not found")); return files; } @@ -229,7 +229,7 @@ void FontsCollectorThread::CollectFontData () { reg = new wxRegKey(_T("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Fonts")); if (!reg->Exists()) { delete reg; - throw _("Could not locate fonts directory"); + throw _T("Could not locate fonts directory"); } } wxString curName; @@ -345,7 +345,18 @@ void FontsCollectorThread::Collect() { try { work = GetFontFiles(fonts[i]); for (size_t j=0;jSetDefaultStyle(wxTextAttr(wxColour(220,0,0))); - LogBox->AppendText(wxString(_("Failed copying \"")) + work[j] + _T("\".\n")); + LogBox->AppendText(wxString(_("Failed copying \"")) + srcFile + _T("\".\n")); } wxSafeYield(); wxMutexGuiLeave();