From: kramm Date: Sun, 6 Apr 2008 16:52:02 +0000 (+0000) Subject: in gfxfontlist, only skip inserting a font if the font structure itself (not just... X-Git-Tag: buttons-working~257 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=23fc2d528a0f561779f966baea99a96414de82b2 in gfxfontlist, only skip inserting a font if the font structure itself (not just the name) is identical --- 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;