summaryrefslogtreecommitdiff
path: root/x11-servers/XttXF86srv-common/files/patch-z02
blob: 4254fffcb9a1e406e4b993bf03323ddb3a9c16d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- lib/font/X-TrueType/xttfuncs.c.ORIG	Mon Jun 19 11:38:08 2000
+++ lib/font/X-TrueType/xttfuncs.c	Mon Jun 19 11:41:00 2000
@@ -698,7 +698,7 @@
 
         if ((entry = FontCacheGetEntry()) == NULL) {
             charInfo = &nocharinfo;
-            fprintf(stderr, "can't get cache entry\n");
+            fprintf(stderr, "get_metrics: can't get cache entry\n");
             goto next;
         }
         FC_TT_SETVFUNC(entry);
@@ -786,10 +786,9 @@
             char_width.pixel = char_width.raw = 0;
         get_metrics(ft, c, char_width);
         /* Retry to get it created in get_metrics(). */
-        FontCacheSearchEntry(ft->cache, c, &entry);
-        if (!charInfo) {
+		if (!FontCacheSearchEntry(ft->cache, c, &entry)) {
             charInfo = &nocharinfo;
-            fprintf(stderr, "can't get cache entry\n");
+            fprintf(stderr, "get_glyph: can't get cache entry\n");
             goto next;
         }
     }