Patch from Denis Gantsev
Fluxbox would segfault when no fonts were available. Now it just exits with an error.
This commit is contained in:
parent
ee9c0a34ba
commit
43ae328658
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
#include <map>
|
||||
#include <typeinfo>
|
||||
#include <langinfo.h>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef HAVE_SETLOCALE
|
||||
#include <locale.h>
|
||||
|
@ -231,6 +232,9 @@ bool Font::load(const string &name) {
|
|||
m_fontstr = name;
|
||||
resetEffects(*this);
|
||||
return true;
|
||||
} else {
|
||||
std::cerr << "Couldn't initialize fonts. Check your fontconfig installation.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
delete tmp_font;
|
||||
|
|
Loading…
Reference in a new issue