in gfxfontlist, only skip inserting a font if the font structure itself (not just...
authorkramm <kramm>
Sun, 6 Apr 2008 16:52:02 +0000 (16:52 +0000)
committerkramm <kramm>
Sun, 6 Apr 2008 16:52:02 +0000 (16:52 +0000)
lib/gfxtools.c

index 486e285..614cfbd 100644 (file)
@@ -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;