Patch from Denis Gantsev

Fluxbox would segfault when no fonts were available. Now it just exits with an error.
This commit is contained in:
Mark Tiefenbruck 2021-07-06 16:19:56 -07:00
parent ee9c0a34ba
commit 43ae328658

View file

@ -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;