1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

Change assert in set_font to check w/ debug.

This resolves #1292.
This commit is contained in:
Brenden Matthews 2022-11-13 11:09:59 -05:00 committed by Brenden Matthews
parent 93c38c60af
commit 4622c0e336

View File

@ -773,7 +773,10 @@ void display_output_x11::setup_fonts(void) {
}
void display_output_x11::set_font(unsigned int f) {
assert(f < x_fonts.size());
if (f >= x_fonts.size()) {
DBGP("%d >= x_fonts.size()", f);
return;
}
#ifdef BUILD_XFT
if (use_xft.get(*state)) { return; }
#endif /* BUILD_XFT */