From 23fc2d528a0f561779f966baea99a96414de82b2 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Apr 2008 16:52:02 +0000 Subject: [PATCH] in gfxfontlist, only skip inserting a font if the font structure itself (not just the name) is identical --- lib/gfxtools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 486e285..614cfbd 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -774,7 +774,7 @@ gfxfontlist_t*gfxfontlist_addfont(gfxfontlist_t*list, gfxfont_t*font) gfxfontlist_t*last=0,*l = list; while(l) { last = l; - if(!strcmp((char*)l->font->id, font->id)) { + if(l->font == font) { return list; // we already know this font } l = l->next; -- 1.7.10.4