ignore nonexistent font directories silently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,6 +144,12 @@ void wxFontsManager::AddAllFonts()
|
|||||||
{
|
{
|
||||||
wxString dir = tkn.GetNextToken();
|
wxString dir = tkn.GetNextToken();
|
||||||
|
|
||||||
|
if ( !wxDir::Exists(dir) )
|
||||||
|
{
|
||||||
|
wxLogTrace(_T("font"), _T("font directory %s doesn't exist"), dir);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
wxArrayString indexFiles;
|
wxArrayString indexFiles;
|
||||||
if ( !wxDir::GetAllFiles(dir, &indexFiles, _T("FontsIndex")) )
|
if ( !wxDir::GetAllFiles(dir, &indexFiles, _T("FontsIndex")) )
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user