tk/tk-8.6.6-no-fonts-fix.patch

14 lines
326 B
Diff

diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 36e5462..9e2caaf 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -268,7 +268,7 @@ InitFont(
*/
set = FcFontSort(0, pattern, FcTrue, NULL, &result);
- if (!set) {
+ if (!set || set->nfont == 0) {
ckfree(fontPtr);
return NULL;
}