]> git.saurik.com Git - wxWidgets.git/commitdiff
ignore nonexistent font directories silently
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 May 2007 12:34:23 +0000 (12:34 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 May 2007 12:34:23 +0000 (12:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/dfb/fontmgr.cpp

index 8d94c2300ea0e1160fb6bcd3aa60f6bdcdd10275..1bc84cac588326e4f0108cf9a14d131b3dee0d90 100644 (file)
@@ -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;