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

14 lines
326 B
Diff
Raw Normal View History

2016-07-25 08:20:39 +00:00
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
2017-08-10 11:03:54 +00:00
index cce59a8..78df47a 100644
2016-07-25 08:20:39 +00:00
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
2017-08-10 11:03:54 +00:00
@@ -271,7 +271,7 @@ InitFont(
2016-07-25 08:20:39 +00:00
*/
set = FcFontSort(0, pattern, FcTrue, NULL, &result);
- if (!set) {
+ if (!set || set->nfont == 0) {
ckfree(fontPtr);
return NULL;
}