From cc096b11ea824104eff93744eb7ef7072510e5ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 15 May 2007 12:34:23 +0000 Subject: [PATCH] ignore nonexistent font directories silently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/dfb/fontmgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dfb/fontmgr.cpp b/src/dfb/fontmgr.cpp index 8d94c2300e..1bc84cac58 100644 --- a/src/dfb/fontmgr.cpp +++ b/src/dfb/fontmgr.cpp @@ -144,6 +144,12 @@ void wxFontsManager::AddAllFonts() { wxString dir = tkn.GetNextToken(); + if ( !wxDir::Exists(dir) ) + { + wxLogTrace(_T("font"), _T("font directory %s doesn't exist"), dir); + continue; + } + wxArrayString indexFiles; if ( !wxDir::GetAllFiles(dir, &indexFiles, _T("FontsIndex")) ) continue; -- 2.50.0