projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
209ce62
)
ignore nonexistent font directories silently
author
Václav Slavík
<vslavik@fastmail.fm>
Tue, 15 May 2007 12:34:23 +0000
(12:34 +0000)
committer
Vá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
patch
|
blob
|
blame
|
history
diff --git
a/src/dfb/fontmgr.cpp
b/src/dfb/fontmgr.cpp
index 8d94c2300ea0e1160fb6bcd3aa60f6bdcdd10275..1bc84cac588326e4f0108cf9a14d131b3dee0d90 100644
(file)
--- 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;