From 7e1d5f4fa85d3ab0c77378f8f776a3c5611adad5 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Thu, 23 Feb 2006 22:03:37 +0000 Subject: [PATCH] Hopefully fixed fonts collector Originally committed to SVN as r132. --- core/fonts_collector.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) 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();