]> granicus.if.org Git - graphviz/commitdiff
fix "keep quality sorted within type" bug
authorellson <devnull@localhost>
Wed, 4 May 2005 13:54:27 +0000 (13:54 +0000)
committerellson <devnull@localhost>
Wed, 4 May 2005 13:54:27 +0000 (13:54 +0000)
lib/gvc/gvplugin.c

index 7839ecb085d01d25303ad80bcdb001a2797746f0..ecb04f41498ba7ec74dad58e6c217ad7a4b15ebf 100644 (file)
@@ -80,7 +80,7 @@ boolean gvplugin_install(GVC_t * gvc, api_t api,
        pnext = &((*pnext)->next);
 
     /* keep quality sorted within type and inster new duplicates ahead of old */
-    while (*pnext && quality < (*pnext)->quality)
+    while (*pnext && strcmp(typestr, (*pnext)->typestr) == 0 && quality < (*pnext)->quality)
        pnext = &((*pnext)->next);
 
     plugin = malloc(sizeof(gv_plugin_t));